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.0105/0.0105, allocations: 113.7 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.002686/0.002687, allocations: 212.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 2.564/2.564, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4421/0.4421, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002905/0.002905, allocations: 83.86 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6984/0.7013, 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.04068/0.7421, allocations: 17.25 MB / 0.5485 GB, free: 32 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02739/0.7696, allocations: 5.496 MB / 0.5539 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009019/0.7787, allocations: 115.7 kB / 0.554 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01443/0.7932, allocations: 4.345 MB / 0.5582 GB, free: 6.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01513/0.8084, allocations: 2.7 MB / 0.5609 GB, free: 3.734 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006297/0.8148, allocations: 1.459 MB / 0.5623 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01986/0.8347, allocations: 8.633 MB / 0.5707 GB, free: 9.625 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01303/0.8478, allocations: 5.373 MB / 0.576 GB, free: 4.176 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008271/0.8561, allocations: 2.648 MB / 0.5786 GB, free: 1.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009799/0.866, allocations: 3.821 MB / 0.5823 GB, free: 13.69 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003273/0.8693, allocations: 0.5352 MB / 0.5828 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006593/0.876, allocations: 1.615 MB / 0.5844 GB, free: 11.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007538/0.8835, allocations: 3.351 MB / 0.5877 GB, free: 8.176 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01118/0.8948, allocations: 3.624 MB / 0.5912 GB, free: 4.531 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02287/0.9177, allocations: 11.12 MB / 0.6021 GB, free: 9.367 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.9178, allocations: 7.938 kB / 0.6021 GB, free: 9.359 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.9178, allocations: 0 / 0.6021 GB, free: 9.359 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004392/0.9182, allocations: 3.984 kB / 0.6021 GB, free: 9.355 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.02631/0.9446, allocations: 8.183 MB / 0.6101 GB, free: 1.086 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.9446, allocations: 12.03 kB / 0.6101 GB, free: 1.074 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03073/0.9754, allocations: 3.67 MB / 0.6137 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01504/0.9904, allocations: 5.286 MB / 0.6188 GB, free: 8.023 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003804/0.9909, allocations: 365.8 kB / 0.6192 GB, free: 7.664 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/0.9932, allocations: 0.5152 MB / 0.6197 GB, free: 7.148 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03299/1.026, allocations: 16.25 MB / 0.6355 GB, free: 5.832 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/1.027, allocations: 83.3 kB / 0.6356 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009201/1.027, allocations: 231.8 kB / 0.6358 GB, free: 5.523 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004765/1.032, allocations: 2.919 MB / 0.6387 GB, free: 2.594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02972/1.062, 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.09158/1.154, allocations: 64.46 MB / 0.715 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3201/1.474, allocations: 7.832 MB / 0.7227 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005751/1.479, allocations: 4.277 MB / 0.7268 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02662/1.506, allocations: 19.37 MB / 0.7458 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/1.506, allocations: 70.19 kB / 0.7458 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=284): time 5.711e-06/1.506, allocations: 0 / 0.7458 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=366): time 0.1569/1.663, allocations: 51.86 MB / 0.7965 GB, free: 99.17 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/1.663, allocations: 269.8 kB / 0.7967 GB, free: 98.85 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006723/1.67, allocations: 6.042 MB / 0.8026 GB, free: 92.79 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008292/1.671, allocations: 81.7 kB / 0.8027 GB, free: 92.71 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002119/1.673, allocations: 4.667 MB / 0.8073 GB, free: 88.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001467/1.674, allocations: 1.352 MB / 0.8086 GB, free: 86.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002229/1.677, allocations: 1.908 MB / 0.8104 GB, free: 84.78 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.982e-05/1.677, allocations: 305.1 kB / 0.8107 GB, free: 84.48 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004894/1.682, allocations: 4.208 MB / 0.8148 GB, free: 80.26 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006976/1.689, allocations: 9.438 MB / 0.8241 GB, free: 68.28 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01393/1.703, allocations: 14.59 MB / 0.8383 GB, free: 51.13 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001177/1.703, allocations: 52 kB / 0.8384 GB, free: 51.08 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03292/1.736, allocations: 17.55 MB / 0.8555 GB, free: 33.48 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.471e-05/1.736, allocations: 84 kB / 0.8556 GB, free: 33.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/1.736, allocations: 183.4 kB / 0.8558 GB, free: 33.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01396/1.75, allocations: 4.585 MB / 0.8602 GB, free: 28.63 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007012/1.757, allocations: 2.117 MB / 0.8623 GB, free: 26.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03069/1.788, allocations: 25.43 MB / 0.8871 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007466/1.795, allocations: 0.5383 MB / 0.8877 GB, free: 276 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/1.797, allocations: 0.5405 MB / 0.8882 GB, free: 15.73 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.006074/1.803, allocations: 3.117 MB / 0.8912 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/1.804, allocations: 0.563 MB / 0.8918 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02379/1.828, allocations: 10.72 MB / 0.9022 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-05/1.828, allocations: 36 kB / 0.9023 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-05/1.828, allocations: 20 kB / 0.9023 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.353e-05/1.829, allocations: 19.94 kB / 0.9023 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04566/1.874, allocations: 20.32 MB / 0.9222 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.674e-05/1.874, allocations: 3.938 kB / 0.9222 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003/1.877, allocations: 0.5266 MB / 0.9227 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01476/1.892, allocations: 4.234 MB / 0.9268 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000803/1.893, allocations: 59.98 kB / 0.9269 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3232/2.216, allocations: 23.17 MB / 0.9495 GB, free: 202.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/2.216, allocations: 4 kB / 0.9495 GB, free: 202.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03078/2.247, allocations: 15.61 MB / 0.9647 GB, free: 200.2 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/2.249, allocations: 0.5848 MB / 0.9653 GB, free: 200.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001779/2.25, allocations: 67.89 kB / 0.9654 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004077/2.255, allocations: 225.3 kB / 0.9656 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001119/2.256, allocations: 224.6 kB / 0.9658 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003353/2.256, allocations: 95.86 kB / 0.9659 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.006316/2.262, allocations: 3.764 MB / 0.9696 GB, free: 198.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 5.91e-07/2.262, allocations: 0 / 0.9696 GB, free: 198.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.008888/2.271, allocations: 1.9 MB / 0.9714 GB, free: 198.5 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.0009123/2.272, allocations: 216.2 kB / 0.9716 GB, free: 198.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01466/2.287, allocations: 10.47 MB / 0.9819 GB, free: 194.5 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/2.287, allocations: 2.625 kB / 0.9819 GB, free: 194.5 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005673/2.293, allocations: 4.098 MB / 0.9859 GB, free: 192.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005111/2.298, allocations: 0.779 MB / 0.9866 GB, free: 191.9 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02824/2.326, allocations: 16.78 MB / 1.003 GB, free: 177.1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005791/2.332, allocations: 4.819 MB / 1.008 GB, free: 172.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/2.334, allocations: 447.2 kB / 1.008 GB, free: 172.4 MB / 0.6231 GB Notification: Performance of SimCode: time 1.964e-06/2.334, allocations: 0 / 1.008 GB, free: 172.4 MB / 0.6231 GB Notification: Performance of Templates: time 0.1537/2.488, allocations: 154.6 MB / 1.159 GB, free: 18.04 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