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.001248/0.001253, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1934/0.1934, allocations: 46.09 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 75.88 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3024, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01627/0.3187, allocations: 17.25 MB / 0.5485 GB, free: 28 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.3318, allocations: 5.489 MB / 0.5539 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00396/0.3358, allocations: 115.7 kB / 0.554 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007913/0.3438, allocations: 4.345 MB / 0.5582 GB, free: 6.453 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007544/0.3514, allocations: 2.782 MB / 0.561 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002976/0.3544, allocations: 1.459 MB / 0.5624 GB, free: 2.199 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.3654, allocations: 8.644 MB / 0.5708 GB, free: 9.539 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006705/0.3721, allocations: 5.365 MB / 0.5761 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00416/0.3763, allocations: 2.652 MB / 0.5786 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005247/0.3816, allocations: 3.825 MB / 0.5824 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001837/0.3835, allocations: 0.539 MB / 0.5829 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004345/0.3878, allocations: 1.611 MB / 0.5845 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003739/0.3916, allocations: 3.355 MB / 0.5878 GB, free: 8.086 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005252/0.3969, allocations: 3.616 MB / 0.5913 GB, free: 4.449 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01433/0.4112, allocations: 11.13 MB / 0.6022 GB, free: 9.281 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.4112, allocations: 0 / 0.6022 GB, free: 9.281 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4112, allocations: 0 / 0.6022 GB, free: 9.281 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003964/0.4117, allocations: 4 kB / 0.6022 GB, free: 9.277 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.02022/0.4319, allocations: 8.187 MB / 0.6102 GB, free: 1.004 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4319, allocations: 12.03 kB / 0.6102 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02472/0.4567, allocations: 3.67 MB / 0.6138 GB, free: 13.31 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.4687, allocations: 5.278 MB / 0.6189 GB, free: 7.949 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.4691, allocations: 369.8 kB / 0.6193 GB, free: 7.586 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001981/0.4711, allocations: 0.5152 MB / 0.6198 GB, free: 7.07 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03251/0.5036, allocations: 16.24 MB / 0.6356 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003769/0.504, allocations: 83.3 kB / 0.6357 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001905/0.5059, allocations: 239.8 kB / 0.6359 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00493/0.5109, allocations: 2.911 MB / 0.6388 GB, free: 2.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02978/0.5407, allocations: 13.7 MB / 0.6522 GB, free: 4.797 MB / 0.4981 GB 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.08553/0.6263, allocations: 64.46 MB / 0.7151 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2634/0.8897, allocations: 7.825 MB / 0.7227 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005487/0.8952, allocations: 4.28 MB / 0.7269 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0236/0.9188, allocations: 19.37 MB / 0.7458 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.9189, allocations: 67.47 kB / 0.7459 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5.441e-06/0.9189, allocations: 0 / 0.7459 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1455/1.064, allocations: 51.86 MB / 0.7966 GB, free: 99.06 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/1.065, allocations: 273.7 kB / 0.7968 GB, free: 98.74 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006606/1.071, allocations: 6.042 MB / 0.8027 GB, free: 92.68 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008668/1.072, allocations: 85.7 kB / 0.8028 GB, free: 92.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002026/1.074, allocations: 4.668 MB / 0.8074 GB, free: 87.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001394/1.075, allocations: 1.354 MB / 0.8087 GB, free: 86.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002212/1.078, allocations: 1.897 MB / 0.8105 GB, free: 84.68 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.872e-05/1.078, allocations: 305.1 kB / 0.8108 GB, free: 84.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004646/1.082, allocations: 4.208 MB / 0.8149 GB, free: 80.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006823/1.089, allocations: 9.438 MB / 0.8241 GB, free: 68.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01347/1.103, allocations: 14.59 MB / 0.8384 GB, free: 51.02 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/1.103, allocations: 52 kB / 0.8385 GB, free: 50.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03063/1.134, allocations: 17.54 MB / 0.8556 GB, free: 33.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001835/1.134, allocations: 84.97 kB / 0.8557 GB, free: 33.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002129/1.134, allocations: 180 kB / 0.8558 GB, free: 33.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01229/1.146, allocations: 4.585 MB / 0.8603 GB, free: 28.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006231/1.153, allocations: 2.125 MB / 0.8624 GB, free: 26.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02828/1.181, allocations: 25.44 MB / 0.8872 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007137/1.188, allocations: 0.5305 MB / 0.8877 GB, free: 164 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001685/1.19, allocations: 0.536 MB / 0.8883 GB, free: 15.63 MB / 0.5763 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.005701/1.195, allocations: 3.109 MB / 0.8913 GB, free: 12.51 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/1.197, allocations: 0.5708 MB / 0.8919 GB, free: 11.93 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02212/1.219, allocations: 10.71 MB / 0.9023 GB, free: 1.152 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-05/1.219, allocations: 36 kB / 0.9024 GB, free: 1.117 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.014e-05/1.219, allocations: 22.16 kB / 0.9024 GB, free: 1.098 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.195e-05/1.219, allocations: 19.92 kB / 0.9024 GB, free: 1.078 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0386/1.258, allocations: 20.32 MB / 0.9222 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.582e-05/1.258, allocations: 3.938 kB / 0.9222 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/1.26, allocations: 0.5344 MB / 0.9228 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01334/1.274, allocations: 4.222 MB / 0.9269 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007574/1.275, allocations: 67.98 kB / 0.927 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2788/1.553, allocations: 23.17 MB / 0.9496 GB, free: 202.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.553, allocations: 1.094 kB / 0.9496 GB, free: 202.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02725/1.581, allocations: 15.61 MB / 0.9648 GB, free: 200.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.582, allocations: 0.5882 MB / 0.9654 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/1.583, allocations: 53.78 kB / 0.9655 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.586, allocations: 229.6 kB / 0.9657 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007218/1.587, allocations: 219.6 kB / 0.9659 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002632/1.587, allocations: 96.12 kB / 0.966 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.004781/1.592, allocations: 3.768 MB / 0.9697 GB, free: 198.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4.6e-07/1.592, allocations: 2.438 kB / 0.9697 GB, free: 198.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.007411/1.599, allocations: 1.894 MB / 0.9715 GB, free: 198.4 MB / 0.6231 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.0006551/1.6, allocations: 216.9 kB / 0.9717 GB, free: 198.2 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01265/1.613, allocations: 10.47 MB / 0.9819 GB, free: 194.4 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/1.613, allocations: 0 / 0.9819 GB, free: 194.4 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004822/1.618, allocations: 4.104 MB / 0.9859 GB, free: 192.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003815/1.621, allocations: 0.7771 MB / 0.9867 GB, free: 191.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02269/1.644, allocations: 16.79 MB / 1.003 GB, free: 177 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004138/1.648, allocations: 4.812 MB / 1.008 GB, free: 172.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001587/1.65, allocations: 443 kB / 1.008 GB, free: 172.3 MB / 0.6231 GB Notification: Performance of SimCode: time 8.12e-07/1.65, allocations: 4 kB / 1.008 GB, free: 172.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.1371/1.787, allocations: 153.6 MB / 1.158 GB, free: 18.93 MB / 0.6231 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches