Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001595/0.001595, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001975/0.001975, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.3 MB, free: 10.83 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.219/0.219, allocations: 46.1 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 75.88 kB / 416.9 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1611, allocations: 62.44 MB / 479.3 MB, free: 9.07 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.07261/0.2338, allocations: 72.71 MB / 0.5391 GB, free: 72 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.366/0.5999, allocations: 14.49 MB / 0.5532 GB, free: 35.45 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02027/0.6202, allocations: 328.2 kB / 0.5535 GB, free: 35.45 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009423/0.6297, allocations: 4.327 MB / 0.5578 GB, free: 35.32 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007967/0.6377, allocations: 2.548 MB / 0.5602 GB, free: 35.18 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003434/0.6412, allocations: 1.353 MB / 0.5616 GB, free: 35.14 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01634/0.6576, allocations: 12.03 MB / 0.5733 GB, free: 34.65 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008899/0.6665, allocations: 5.282 MB / 0.5785 GB, free: 33.03 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005943/0.6725, allocations: 2.391 MB / 0.5808 GB, free: 32.27 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00723/0.6797, allocations: 4.071 MB / 0.5848 GB, free: 31.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002067/0.6818, allocations: 384.3 kB / 0.5852 GB, free: 31.18 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004399/0.6862, allocations: 1.537 MB / 0.5867 GB, free: 30.9 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003951/0.6902, allocations: 3.192 MB / 0.5898 GB, free: 29.91 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004224/0.6944, allocations: 3.471 MB / 0.5932 GB, free: 27.59 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.7058, allocations: 10.65 MB / 0.6036 GB, free: 20.61 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.7059, allocations: 0 / 0.6036 GB, free: 20.61 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7059, allocations: 4 kB / 0.6036 GB, free: 20.6 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004549/0.7064, allocations: 0 / 0.6036 GB, free: 20.6 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.0187/0.7251, allocations: 8.18 MB / 0.6115 GB, free: 15.3 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.7251, allocations: 9.875 kB / 0.6116 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02565/0.7508, allocations: 3.673 MB / 0.6151 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/0.762, allocations: 5.175 MB / 0.6202 GB, free: 7.422 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.7623, allocations: 369.9 kB / 0.6206 GB, free: 7.113 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001513/0.7638, allocations: 0.518 MB / 0.6211 GB, free: 6.648 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03141/0.7952, allocations: 16.25 MB / 0.6369 GB, free: 5.5 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000278/0.7955, allocations: 79.31 kB / 0.637 GB, free: 5.422 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008906/0.7964, allocations: 233.8 kB / 0.6372 GB, free: 5.246 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005186/0.8016, allocations: 2.921 MB / 0.6401 GB, free: 2.34 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03472/0.8364, allocations: 13.7 MB / 0.6534 GB, free: 4.633 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1081/0.9445, allocations: 64.75 MB / 0.7167 GB, free: 2.406 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02545/0.97, allocations: 7.848 MB / 0.7243 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008661/0.9787, allocations: 4.275 MB / 0.7285 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05475/1.033, allocations: 19.36 MB / 0.7474 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.136e-05/1.034, allocations: 64.56 kB / 0.7475 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=284): time 8.446e-06/1.034, allocations: 0 / 0.7475 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=366): time 0.4678/1.501, allocations: 51.85 MB / 0.7981 GB, free: 198.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/1.502, allocations: 268.1 kB / 0.7984 GB, free: 198.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01509/1.517, allocations: 6.043 MB / 0.8043 GB, free: 195.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001585/1.518, allocations: 83.48 kB / 0.8044 GB, free: 195.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004136/1.523, allocations: 4.666 MB / 0.8089 GB, free: 192.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002404/1.525, allocations: 1.351 MB / 0.8102 GB, free: 191 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00322/1.528, allocations: 1.908 MB / 0.8121 GB, free: 189.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.693e-05/1.528, allocations: 301.1 kB / 0.8124 GB, free: 189.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006114/1.534, allocations: 4.208 MB / 0.8165 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008436/1.543, allocations: 9.433 MB / 0.8257 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01559/1.559, allocations: 14.59 MB / 0.8399 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/1.559, allocations: 52 kB / 0.84 GB, free: 157 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03786/1.597, allocations: 17.56 MB / 0.8571 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/1.597, allocations: 84 kB / 0.8572 GB, free: 139.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002416/1.597, allocations: 180 kB / 0.8574 GB, free: 139.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01534/1.612, allocations: 4.579 MB / 0.8619 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008682/1.621, allocations: 2.125 MB / 0.8639 GB, free: 132.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0355/1.657, allocations: 23.71 MB / 0.8871 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01064/1.667, allocations: 0.5266 MB / 0.8876 GB, free: 108 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002675/1.67, allocations: 0.5412 MB / 0.8881 GB, free: 107.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1130): * Single equations (assignments): 1125 * 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 {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008098/1.678, allocations: 3.109 MB / 0.8912 GB, free: 104.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001765/1.68, allocations: 0.5592 MB / 0.8917 GB, free: 103.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0219/1.702, allocations: 10.72 MB / 0.9022 GB, free: 93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.75e-05/1.702, allocations: 45.86 kB / 0.9022 GB, free: 92.96 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.001e-05/1.702, allocations: 16 kB / 0.9023 GB, free: 92.95 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.464e-05/1.702, allocations: 19.94 kB / 0.9023 GB, free: 92.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04248/1.745, allocations: 20.48 MB / 0.9223 GB, free: 72.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.876e-05/1.745, allocations: 0.9375 kB / 0.9223 GB, free: 72.34 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003071/1.748, allocations: 0.5305 MB / 0.9228 GB, free: 71.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01408/1.762, allocations: 4.228 MB / 0.9269 GB, free: 67.57 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001205/1.763, allocations: 63.98 kB / 0.927 GB, free: 67.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03044/1.794, allocations: 21.5 MB / 0.948 GB, free: 45.74 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.794, allocations: 1.375 kB / 0.948 GB, free: 45.74 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03105/1.825, allocations: 15.61 MB / 0.9632 GB, free: 30.04 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002367/1.827, allocations: 0.5836 MB / 0.9638 GB, free: 29.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002748/1.83, allocations: 56.7 kB / 0.9638 GB, free: 29.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004933/1.835, allocations: 236.2 kB / 0.9641 GB, free: 29.14 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001546/1.836, allocations: 223.2 kB / 0.9643 GB, free: 28.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007343/1.837, allocations: 97.7 kB / 0.9644 GB, free: 28.83 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.008952/1.846, allocations: 3.765 MB / 0.9681 GB, free: 25.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/1.846, allocations: 0 / 0.9681 GB, free: 25.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.3033/2.15, allocations: 1.899 MB / 0.9699 GB, free: 187.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (266): * Single equations (assignments): 261 * 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 {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/2.151, allocations: 206.8 kB / 0.9701 GB, free: 187.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01656/2.167, allocations: 10.44 MB / 0.9803 GB, free: 186.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.098e-06/2.167, allocations: 1.406 kB / 0.9803 GB, free: 186.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006038/2.173, allocations: 4.096 MB / 0.9843 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004956/2.178, allocations: 0.735 MB / 0.985 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03608/2.214, allocations: 19.58 MB / 1.004 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007367/2.222, allocations: 4.85 MB / 1.009 GB, free: 176.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.008203/2.23, allocations: 2.768 MB / 1.012 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/2.232, allocations: 385.9 kB / 1.012 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of SimCode: time 8.01e-07/2.232, allocations: 0 / 1.012 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.1365/2.368, allocations: 81.2 MB / 1.091 GB, free: 117.8 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches