Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 108.1 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 180.2 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1929/0.1929, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 68.12 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3107, allocations: 60.83 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01487/0.3256, allocations: 14.78 MB / 0.534 GB, free: 8.887 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.3361, allocations: 5.007 MB / 0.5389 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00272/0.3389, allocations: 100.8 kB / 0.539 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007804/0.3467, allocations: 4.162 MB / 0.5431 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006677/0.3535, allocations: 2.365 MB / 0.5454 GB, free: 388 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002736/0.3562, allocations: 1.079 MB / 0.5464 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.3664, allocations: 7.055 MB / 0.5533 GB, free: 9.414 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006406/0.3728, allocations: 5.166 MB / 0.5584 GB, free: 4.184 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003891/0.3767, allocations: 2.262 MB / 0.5606 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004819/0.3816, allocations: 3.076 MB / 0.5636 GB, free: 14.83 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001711/0.3833, allocations: 0.4922 MB / 0.5641 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003524/0.3869, allocations: 1.381 MB / 0.5654 GB, free: 12.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003575/0.3905, allocations: 2.798 MB / 0.5681 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004774/0.3953, allocations: 3.181 MB / 0.5712 GB, free: 6.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.406, allocations: 9.934 MB / 0.5809 GB, free: 12.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.4061, allocations: 0 / 0.5809 GB, free: 12.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4061, allocations: 0 / 0.5809 GB, free: 12.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002844/0.4064, allocations: 4 kB / 0.5809 GB, free: 12.98 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01459/0.421, allocations: 6.91 MB / 0.5877 GB, free: 5.988 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.421, allocations: 8.031 kB / 0.5877 GB, free: 5.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03481/0.4559, allocations: 3.343 MB / 0.591 GB, free: 2.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01515/0.471, allocations: 4.513 MB / 0.5954 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004264/0.4715, allocations: 328.8 kB / 0.5957 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002061/0.4736, allocations: 459.5 kB / 0.5961 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02871/0.5023, allocations: 13.27 MB / 0.6091 GB, free: 15.11 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001726/0.5025, allocations: 71.36 kB / 0.6092 GB, free: 15.04 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005416/0.5031, allocations: 207.8 kB / 0.6094 GB, free: 14.83 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004184/0.5073, allocations: 2.59 MB / 0.6119 GB, free: 12.24 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02069/0.528, allocations: 11.54 MB / 0.6232 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06447/0.5925, allocations: 53.18 MB / 0.6751 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01306/0.6056, allocations: 5.656 MB / 0.6806 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004303/0.6099, allocations: 3.5 MB / 0.684 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000741/0.6107, allocations: 0.6877 MB / 0.6847 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.6108, allocations: 60.5 kB / 0.6848 GB, free: 15.79 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 4.458e-06/0.6108, allocations: 0 / 0.6848 GB, free: 15.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.3414/0.9522, allocations: 36.56 MB / 0.7205 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.536e-05/0.9523, allocations: 268.6 kB / 0.7207 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006835/0.9591, allocations: 5.219 MB / 0.7258 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006367/0.9598, allocations: 74.2 kB / 0.7259 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002135/0.962, allocations: 3.916 MB / 0.7297 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001267/0.9632, allocations: 1.168 MB / 0.7308 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002096/0.9653, allocations: 1.603 MB / 0.7324 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.022e-05/0.9654, allocations: 305.8 kB / 0.7327 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004849/0.9702, allocations: 3.632 MB / 0.7363 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005774/0.976, allocations: 7.84 MB / 0.7439 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.9866, allocations: 12.27 MB / 0.7559 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/0.9867, allocations: 41.88 kB / 0.7559 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.01966/1.006, allocations: 13.76 MB / 0.7694 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.238e-05/1.006, allocations: 67.06 kB / 0.7694 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/1.007, allocations: 144 kB / 0.7696 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005576/1.012, allocations: 2.762 MB / 0.7723 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004986/1.017, allocations: 1.782 MB / 0.774 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02192/1.039, allocations: 17.81 MB / 0.7914 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0101/1.049, allocations: 473.7 kB / 0.7919 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/1.051, allocations: 458.3 kB / 0.7923 GB, free: 108.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (951): * Single equations (assignments): 946 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006453/1.057, allocations: 2.779 MB / 0.795 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001644/1.059, allocations: 481.8 kB / 0.7955 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01863/1.078, allocations: 8.051 MB / 0.8033 GB, free: 96.79 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.615e-05/1.078, allocations: 32 kB / 0.8034 GB, free: 96.76 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.441e-05/1.078, allocations: 8 kB / 0.8034 GB, free: 96.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-05/1.078, allocations: 19.94 kB / 0.8034 GB, free: 96.73 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03023/1.108, allocations: 16.88 MB / 0.8199 GB, free: 79.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-05/1.108, allocations: 7.938 kB / 0.8199 GB, free: 79.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00229/1.11, allocations: 0.4953 MB / 0.8204 GB, free: 79.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005464/1.116, allocations: 2.49 MB / 0.8228 GB, free: 76.78 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004983/1.116, allocations: 63.98 kB / 0.8229 GB, free: 76.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01528/1.132, allocations: 15.95 MB / 0.8384 GB, free: 60.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.132, allocations: 15.94 kB / 0.8384 GB, free: 60.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/1.148, allocations: 12.6 MB / 0.8508 GB, free: 47.69 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001568/1.149, allocations: 0.5416 MB / 0.8513 GB, free: 47.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009194/1.15, allocations: 56 kB / 0.8513 GB, free: 47.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002407/1.153, allocations: 223.7 kB / 0.8515 GB, free: 46.85 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005198/1.153, allocations: 201.6 kB / 0.8517 GB, free: 46.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002122/1.154, allocations: 87.98 kB / 0.8518 GB, free: 46.56 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004095/1.158, allocations: 3.301 MB / 0.855 GB, free: 43.28 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.71e-07/1.158, allocations: 0 / 0.855 GB, free: 43.28 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007578/1.165, allocations: 1.555 MB / 0.8566 GB, free: 41.73 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006451/1.166, allocations: 215.3 kB / 0.8568 GB, free: 41.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.177, allocations: 8.918 MB / 0.8655 GB, free: 32.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.177, allocations: 4 kB / 0.8655 GB, free: 32.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004257/1.181, allocations: 3.568 MB / 0.869 GB, free: 29 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003982/1.185, allocations: 0.6751 MB / 0.8696 GB, free: 28.33 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02347/1.209, allocations: 15.23 MB / 0.8845 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00431/1.213, allocations: 4.3 MB / 0.8887 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/1.215, allocations: 407.3 kB / 0.8891 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of SimCode: time 1.463e-06/1.215, allocations: 112 / 0.8891 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of Templates: time 0.4225/1.637, allocations: 136.9 MB / 1.023 GB, free: 131.6 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches