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.001334/0.001334, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2072/0.2072, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 80.06 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4037, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01956/0.4233, allocations: 17.24 MB / 0.5478 GB, free: 44 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.4379, allocations: 5.486 MB / 0.5532 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004864/0.4428, allocations: 119.6 kB / 0.5533 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009125/0.452, allocations: 4.349 MB / 0.5576 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008973/0.461, allocations: 2.696 MB / 0.5602 GB, free: 3.758 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003859/0.4649, allocations: 1.462 MB / 0.5616 GB, free: 2.293 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01382/0.4787, allocations: 8.64 MB / 0.5701 GB, free: 9.641 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009282/0.4881, allocations: 5.379 MB / 0.5753 GB, free: 4.188 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006016/0.4941, allocations: 2.656 MB / 0.5779 GB, free: 1.523 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00742/0.5016, allocations: 3.821 MB / 0.5816 GB, free: 13.69 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002721/0.5043, allocations: 0.5312 MB / 0.5822 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005078/0.5094, allocations: 1.604 MB / 0.5837 GB, free: 11.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005097/0.5145, allocations: 3.3 MB / 0.587 GB, free: 8.246 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007456/0.522, allocations: 3.62 MB / 0.5905 GB, free: 4.605 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01989/0.5419, allocations: 11.17 MB / 0.6014 GB, free: 9.383 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.542, allocations: 0 / 0.6014 GB, free: 9.383 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.542, allocations: 0 / 0.6014 GB, free: 9.383 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005124/0.5425, allocations: 0 / 0.6014 GB, free: 9.383 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.02396/0.5665, allocations: 8.394 MB / 0.6096 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.5666, allocations: 8.031 kB / 0.6096 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02912/0.5957, allocations: 3.721 MB / 0.6132 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.6122, allocations: 5.304 MB / 0.6184 GB, free: 7.77 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004555/0.6126, allocations: 369.8 kB / 0.6188 GB, free: 7.406 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003035/0.6157, allocations: 0.5154 MB / 0.6193 GB, free: 6.891 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03985/0.6556, allocations: 16.25 MB / 0.6351 GB, free: 5.574 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004862/0.6561, allocations: 87.28 kB / 0.6352 GB, free: 5.488 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003379/0.6595, allocations: 235.8 kB / 0.6354 GB, free: 5.258 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005876/0.6654, allocations: 2.923 MB / 0.6383 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03276/0.6982, allocations: 13.69 MB / 0.6517 GB, free: 4.613 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.09797/0.7962, allocations: 64.56 MB / 0.7147 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3386/1.135, allocations: 7.827 MB / 0.7224 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006138/1.141, allocations: 4.285 MB / 0.7265 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02461/1.166, allocations: 19.39 MB / 0.7455 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/1.166, allocations: 66.2 kB / 0.7455 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5.881e-06/1.166, allocations: 0 / 0.7455 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1783/1.344, allocations: 52.23 MB / 0.7965 GB, free: 98.63 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001974/1.344, allocations: 269.7 kB / 0.7968 GB, free: 98.31 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0118/1.356, allocations: 6.055 MB / 0.8027 GB, free: 92.36 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001248/1.357, allocations: 89.7 kB / 0.8028 GB, free: 92.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004185/1.362, allocations: 4.844 MB / 0.8075 GB, free: 87.76 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002892/1.365, allocations: 1.42 MB / 0.8089 GB, free: 86.36 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007038/1.372, allocations: 1.914 MB / 0.8108 GB, free: 84.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.653e-05/1.372, allocations: 305.1 kB / 0.8111 GB, free: 84.13 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007218/1.379, allocations: 4.212 MB / 0.8152 GB, free: 79.91 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009184/1.388, allocations: 9.434 MB / 0.8244 GB, free: 67.93 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01579/1.404, allocations: 14.59 MB / 0.8387 GB, free: 50.78 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001873/1.404, allocations: 52 kB / 0.8387 GB, free: 50.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03842/1.443, allocations: 17.57 MB / 0.8559 GB, free: 33.11 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003988/1.443, allocations: 87.98 kB / 0.856 GB, free: 33.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004367/1.444, allocations: 184.3 kB / 0.8561 GB, free: 32.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01449/1.458, allocations: 4.581 MB / 0.8606 GB, free: 28.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007932/1.466, allocations: 2.125 MB / 0.8627 GB, free: 26.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03499/1.501, allocations: 25.45 MB / 0.8875 GB, free: 416 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01306/1.514, allocations: 0.5307 MB / 0.888 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003629/1.518, allocations: 0.5389 MB / 0.8886 GB, free: 15.34 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.01295/1.531, allocations: 3.116 MB / 0.8916 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003648/1.535, allocations: 0.5937 MB / 0.8922 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04114/1.576, allocations: 10.72 MB / 0.9027 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000116/1.576, allocations: 36 kB / 0.9027 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001068/1.576, allocations: 20 kB / 0.9027 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001279/1.576, allocations: 15.94 kB / 0.9027 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06716/1.643, allocations: 20.33 MB / 0.9226 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.344e-05/1.643, allocations: 3.938 kB / 0.9226 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003021/1.646, allocations: 0.5344 MB / 0.9231 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01639/1.663, allocations: 4.23 MB / 0.9272 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001108/1.664, allocations: 56 kB / 0.9273 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4084/2.072, allocations: 23.18 MB / 0.9499 GB, free: 203 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/2.073, allocations: 1 kB / 0.9499 GB, free: 203 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0334/2.106, allocations: 15.63 MB / 0.9652 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/2.108, allocations: 0.6141 MB / 0.9658 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001186/2.109, allocations: 61.02 kB / 0.9659 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002893/2.112, allocations: 225.6 kB / 0.9661 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008129/2.113, allocations: 231 kB / 0.9663 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/2.113, allocations: 93.64 kB / 0.9664 GB, free: 199.7 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.005795/2.119, allocations: 3.768 MB / 0.9701 GB, free: 198.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.41e-07/2.119, allocations: 0 / 0.9701 GB, free: 198.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.009578/2.128, allocations: 1.897 MB / 0.9719 GB, free: 198.3 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.0008448/2.129, allocations: 220.6 kB / 0.9721 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01473/2.144, allocations: 10.48 MB / 0.9824 GB, free: 194.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/2.144, allocations: 0 / 0.9824 GB, free: 194.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005148/2.149, allocations: 4.103 MB / 0.9864 GB, free: 191.8 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00445/2.154, allocations: 0.7778 MB / 0.9871 GB, free: 191.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02737/2.181, allocations: 16.42 MB / 1.003 GB, free: 176.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006178/2.187, allocations: 4.847 MB / 1.008 GB, free: 172.2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006571/2.194, allocations: 2.769 MB / 1.011 GB, free: 169.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/2.195, allocations: 379.4 kB / 1.011 GB, free: 169.3 MB / 0.6231 GB Notification: Performance of SimCode: time 1.072e-06/2.195, allocations: 4 kB / 1.011 GB, free: 169.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.1281/2.324, allocations: 79.82 MB / 1.089 GB, free: 89.83 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/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