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.001285/0.001285, allocations: 114.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2042/0.2042, allocations: 46.11 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 75.88 kB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2939, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01821/0.3122, allocations: 17.26 MB / 0.5485 GB, free: 16 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.3259, allocations: 5.483 MB / 0.5539 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003474/0.3294, allocations: 119.6 kB / 0.554 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008218/0.3376, allocations: 4.341 MB / 0.5582 GB, free: 6.449 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007266/0.3449, allocations: 2.704 MB / 0.5609 GB, free: 3.734 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003417/0.3484, allocations: 1.466 MB / 0.5623 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.3602, allocations: 8.624 MB / 0.5707 GB, free: 9.625 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007228/0.3675, allocations: 5.377 MB / 0.576 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004601/0.3721, allocations: 2.652 MB / 0.5786 GB, free: 1.512 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005791/0.3779, allocations: 3.825 MB / 0.5823 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001834/0.3798, allocations: 0.5312 MB / 0.5828 GB, free: 13.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003913/0.3837, allocations: 1.607 MB / 0.5844 GB, free: 11.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004417/0.3882, allocations: 3.363 MB / 0.5877 GB, free: 8.164 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006156/0.3943, allocations: 3.62 MB / 0.5912 GB, free: 4.523 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.014/0.4084, allocations: 11.13 MB / 0.6021 GB, free: 9.355 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4084, allocations: 0 / 0.6021 GB, free: 9.355 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4084, allocations: 0 / 0.6021 GB, free: 9.355 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003782/0.4088, allocations: 4 kB / 0.6021 GB, free: 9.352 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.01988/0.4287, allocations: 8.183 MB / 0.6101 GB, free: 1.082 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.4288, allocations: 8.031 kB / 0.6101 GB, free: 1.074 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02717/0.4559, allocations: 3.681 MB / 0.6137 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.4682, allocations: 5.274 MB / 0.6188 GB, free: 8.023 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003204/0.4686, allocations: 361.8 kB / 0.6192 GB, free: 7.668 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001795/0.4704, allocations: 0.5191 MB / 0.6197 GB, free: 7.148 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0291/0.4995, allocations: 16.25 MB / 0.6355 GB, free: 5.828 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002476/0.4997, allocations: 75.36 kB / 0.6356 GB, free: 5.754 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001133/0.5009, allocations: 239.8 kB / 0.6358 GB, free: 5.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004787/0.5057, allocations: 2.919 MB / 0.6387 GB, free: 2.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02772/0.5334, allocations: 13.7 MB / 0.6521 GB, free: 4.871 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.08248/0.6159, allocations: 64.46 MB / 0.715 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2808/0.8968, allocations: 7.828 MB / 0.7227 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00502/0.9019, allocations: 4.284 MB / 0.7268 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02105/0.9229, allocations: 19.37 MB / 0.7458 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.923, allocations: 70.75 kB / 0.7458 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5e-06/0.923, allocations: 0 / 0.7458 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1601/1.083, allocations: 51.86 MB / 0.7965 GB, free: 99.14 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/1.083, allocations: 269.8 kB / 0.7967 GB, free: 98.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007957/1.091, allocations: 6.039 MB / 0.8026 GB, free: 92.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007664/1.092, allocations: 85.64 kB / 0.8027 GB, free: 92.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001914/1.094, allocations: 4.669 MB / 0.8073 GB, free: 88.02 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.095, allocations: 1.346 MB / 0.8086 GB, free: 86.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/1.097, allocations: 1.908 MB / 0.8104 GB, free: 84.76 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.037e-05/1.097, allocations: 301.1 kB / 0.8107 GB, free: 84.46 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004659/1.102, allocations: 4.212 MB / 0.8148 GB, free: 80.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00641/1.108, allocations: 9.434 MB / 0.8241 GB, free: 68.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/1.121, allocations: 14.59 MB / 0.8383 GB, free: 51.11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001221/1.122, allocations: 52 kB / 0.8384 GB, free: 51.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03372/1.155, allocations: 17.55 MB / 0.8555 GB, free: 33.46 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001585/1.155, allocations: 88.03 kB / 0.8556 GB, free: 33.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002171/1.156, allocations: 180 kB / 0.8558 GB, free: 33.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/1.169, allocations: 4.577 MB / 0.8602 GB, free: 28.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006957/1.176, allocations: 2.125 MB / 0.8623 GB, free: 26.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03183/1.208, allocations: 25.44 MB / 0.8871 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007322/1.215, allocations: 0.5305 MB / 0.8877 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/1.217, allocations: 0.5392 MB / 0.8882 GB, free: 15.71 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.006331/1.224, allocations: 3.12 MB / 0.8912 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/1.225, allocations: 0.563 MB / 0.8918 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02439/1.249, allocations: 10.71 MB / 0.9022 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.341e-05/1.25, allocations: 19.92 kB / 0.9023 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/1.25, allocations: 0 / 0.9023 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.251, allocations: 0.5836 MB / 0.9028 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001537/1.253, allocations: 58.34 kB / 0.9029 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003755/1.257, allocations: 235.7 kB / 0.9031 GB, free: 328 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001213/1.258, allocations: 297.9 kB / 0.9034 GB, free: 28 kB / 0.5762 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02359/1.282, allocations: 10.32 MB / 0.9135 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01603/1.298, allocations: 11.4 MB / 0.9246 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004229/1.302, allocations: 3.232 MB / 0.9278 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006956/1.309, allocations: 3.772 MB / 0.9314 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of Backend: time 5.51e-07/1.309, allocations: 0 / 0.9314 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01619/1.325, allocations: 7.868 MB / 0.9391 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of SimCode: time 0.2745/1.6, allocations: 14.98 MB / 0.9538 GB, free: 208 MB / 0.6231 GB Notification: Performance of Templates: time 0.1343/1.734, allocations: 94.75 MB / 1.046 GB, free: 133 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