Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 109.4 kB / 18.45 MB, free: 4.598 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.001266/0.001266, allocations: 184.3 kB / 19.38 MB, free: 3.68 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.412/1.412, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2007/0.2007, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3219, allocations: 60.82 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01659/0.3385, allocations: 17.3 MB / 0.5365 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.3505, allocations: 5.472 MB / 0.5418 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003564/0.3541, allocations: 118.1 kB / 0.5419 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009389/0.3635, allocations: 4.367 MB / 0.5462 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008214/0.3718, allocations: 2.82 MB / 0.549 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003939/0.3758, allocations: 1.461 MB / 0.5504 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.3891, allocations: 8.46 MB / 0.5587 GB, free: 3.965 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007394/0.3965, allocations: 5.369 MB / 0.5639 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004515/0.4011, allocations: 2.663 MB / 0.5665 GB, free: 11.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005847/0.4069, allocations: 3.836 MB / 0.5702 GB, free: 7.996 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001996/0.409, allocations: 0.5352 MB / 0.5708 GB, free: 7.461 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004702/0.4137, allocations: 1.627 MB / 0.5724 GB, free: 5.832 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005243/0.419, allocations: 3.371 MB / 0.5756 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007212/0.4262, allocations: 3.655 MB / 0.5792 GB, free: 14.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01462/0.4409, allocations: 11.2 MB / 0.5901 GB, free: 3.543 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4409, allocations: 0 / 0.5901 GB, free: 3.543 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4409, allocations: 0 / 0.5901 GB, free: 3.543 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003801/0.4413, allocations: 4 kB / 0.5902 GB, free: 3.539 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02223/0.4636, allocations: 8.198 MB / 0.5982 GB, free: 11.25 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.4636, allocations: 8.031 kB / 0.5982 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.4945, allocations: 3.677 MB / 0.6018 GB, free: 7.551 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/0.5093, allocations: 5.387 MB / 0.607 GB, free: 2.082 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003524/0.5097, allocations: 377.8 kB / 0.6074 GB, free: 1.711 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00203/0.5118, allocations: 0.5114 MB / 0.6079 GB, free: 1.199 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03294/0.5447, allocations: 16.23 MB / 0.6237 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002753/0.545, allocations: 83.23 kB / 0.6238 GB, free: 15.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001391/0.5464, allocations: 239.7 kB / 0.624 GB, free: 15.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004954/0.5514, allocations: 2.915 MB / 0.6269 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03039/0.5818, allocations: 13.69 MB / 0.6403 GB, free: 14.95 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.086/0.6678, allocations: 64.46 MB / 0.7032 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02421/0.6921, allocations: 7.83 MB / 0.7108 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005585/0.6977, allocations: 4.274 MB / 0.715 GB, free: 352 kB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.266/0.9637, allocations: 19.28 MB / 0.7338 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/0.9638, allocations: 64.81 kB / 0.7339 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5.12e-06/0.9638, allocations: 0 / 0.7339 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1774/1.141, allocations: 51.85 MB / 0.7845 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/1.141, allocations: 269.7 kB / 0.7848 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01227/1.154, allocations: 6.051 MB / 0.7907 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001013/1.155, allocations: 81.53 kB / 0.7908 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002978/1.158, allocations: 4.676 MB / 0.7954 GB, free: 108 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001971/1.16, allocations: 1.347 MB / 0.7967 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003943/1.164, allocations: 1.908 MB / 0.7985 GB, free: 104.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.151e-05/1.164, allocations: 301.1 kB / 0.7988 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007971/1.172, allocations: 4.2 MB / 0.8029 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00873/1.18, allocations: 9.425 MB / 0.8121 GB, free: 88.24 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/1.193, allocations: 14.57 MB / 0.8264 GB, free: 71.11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.078e-05/1.193, allocations: 56 kB / 0.8264 GB, free: 71.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03151/1.225, allocations: 17.55 MB / 0.8435 GB, free: 53.46 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.225, allocations: 88.25 kB / 0.8436 GB, free: 53.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001621/1.225, allocations: 180 kB / 0.8438 GB, free: 53.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01381/1.239, allocations: 4.574 MB / 0.8483 GB, free: 48.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007178/1.246, allocations: 2.121 MB / 0.8503 GB, free: 46.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03184/1.278, allocations: 25.42 MB / 0.8752 GB, free: 20.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00772/1.286, allocations: 0.5189 MB / 0.8757 GB, free: 20.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001788/1.287, allocations: 0.5467 MB / 0.8762 GB, free: 19.73 MB / 0.5606 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.006571/1.294, allocations: 3.11 MB / 0.8792 GB, free: 16.61 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/1.295, allocations: 0.5709 MB / 0.8798 GB, free: 16.03 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02167/1.317, allocations: 10.7 MB / 0.8903 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.937e-05/1.317, allocations: 15.94 kB / 0.8903 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/1.317, allocations: 0 / 0.8903 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/1.318, allocations: 0.5875 MB / 0.8908 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/1.32, allocations: 60 kB / 0.8909 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003121/1.323, allocations: 227.7 kB / 0.8911 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007123/1.323, allocations: 297.9 kB / 0.8914 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02237/1.346, allocations: 10.31 MB / 0.9015 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01608/1.362, allocations: 11.38 MB / 0.9126 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004224/1.366, allocations: 3.213 MB / 0.9157 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006971/1.373, allocations: 3.777 MB / 0.9194 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of Backend: time 6.01e-07/1.373, allocations: 0 / 0.9194 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01771/1.391, allocations: 7.867 MB / 0.9271 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of SimCode: time 0.0295/1.42, allocations: 15 MB / 0.9418 GB, free: 472 kB / 0.6075 GB Notification: Performance of Templates: time 0.4045/1.825, allocations: 93.67 MB / 1.033 GB, free: 130.5 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches