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.001151/0.001151, allocations: 92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 204.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2094/0.2094, allocations: 45.91 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003025, allocations: 8 kB / 417.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1427, allocations: 63.46 MB / 481.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.2983/0.441, allocations: 62.63 MB / 0.5313 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0352/0.4763, allocations: 14.67 MB / 0.5456 GB, free: 328 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01929/0.4956, allocations: 323.8 kB / 0.5459 GB, free: 272 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01457/0.5102, allocations: 3.084 MB / 0.5489 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03942/0.5497, allocations: 8.923 MB / 0.5576 GB, free: 8.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006381/0.5561, allocations: 1.26 MB / 0.5589 GB, free: 7.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07355/0.6297, allocations: 50.02 MB / 0.6077 GB, free: 6.191 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01055/0.6403, allocations: 6.333 MB / 0.6139 GB, free: 15.8 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00379/0.6441, allocations: 1.861 MB / 0.6157 GB, free: 13.93 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004656/0.6488, allocations: 2.633 MB / 0.6183 GB, free: 11.29 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001224/0.65, allocations: 248 kB / 0.6185 GB, free: 11.04 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003278/0.6533, allocations: 1.147 MB / 0.6196 GB, free: 9.895 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002972/0.6563, allocations: 2.763 MB / 0.6223 GB, free: 7.125 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001815/0.6581, allocations: 1.31 MB / 0.6236 GB, free: 5.805 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.6687, allocations: 8.822 MB / 0.6322 GB, free: 12.96 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.6688, allocations: 0 / 0.6322 GB, free: 12.96 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6688, allocations: 0 / 0.6322 GB, free: 12.96 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004144/0.6692, allocations: 4 kB / 0.6322 GB, free: 12.96 MB / 478.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.022/0.6912, allocations: 7.345 MB / 0.6394 GB, free: 5.527 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.6913, allocations: 16.03 kB / 0.6394 GB, free: 5.512 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.163/0.8543, allocations: 15.1 MB / 0.6542 GB, free: 6.383 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/0.8697, allocations: 5.569 MB / 0.6596 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003449/0.8701, allocations: 369.5 kB / 0.66 GB, free: 380 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001947/0.872, allocations: 0.5074 MB / 0.6605 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03099/0.903, allocations: 16.35 MB / 0.6764 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002067/0.9033, allocations: 87.2 kB / 0.6765 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007001/0.904, allocations: 231.8 kB / 0.6767 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004626/0.9086, allocations: 2.923 MB / 0.6796 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03008/0.9387, allocations: 13.69 MB / 0.6929 GB, free: 13.48 MB / 0.5294 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.3641/1.303, allocations: 64.37 MB / 0.7558 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02155/1.324, allocations: 7.841 MB / 0.7635 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03364/1.358, allocations: 18.9 MB / 0.7819 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/1.358, allocations: 62.59 kB / 0.782 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 5.831e-06/1.358, allocations: 0 / 0.782 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.1497/1.508, allocations: 47.42 MB / 0.8283 GB, free: 75.79 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/1.508, allocations: 273.7 kB / 0.8285 GB, free: 75.47 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008829/1.517, allocations: 6.517 MB / 0.8349 GB, free: 68.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001115/1.518, allocations: 77.7 kB / 0.835 GB, free: 68.86 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003468/1.522, allocations: 4.741 MB / 0.8396 GB, free: 64.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003041/1.525, allocations: 1.34 MB / 0.8409 GB, free: 62.79 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007911/1.526, allocations: 180 kB / 0.8411 GB, free: 62.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004592/1.526, allocations: 0.6984 MB / 0.8418 GB, free: 61.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00563/1.532, allocations: 3.86 MB / 0.8455 GB, free: 58.04 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007964/1.54, allocations: 9.059 MB / 0.8544 GB, free: 46.41 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007769/1.547, allocations: 5.713 MB / 0.86 GB, free: 40.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-05/1.548, allocations: 52 kB / 0.86 GB, free: 40.62 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03168/1.579, allocations: 16.32 MB / 0.876 GB, free: 24.26 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/1.579, allocations: 85 kB / 0.876 GB, free: 24.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002344/1.58, allocations: 184 kB / 0.8762 GB, free: 24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0135/1.593, allocations: 4.121 MB / 0.8802 GB, free: 19.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008039/1.601, allocations: 2.051 MB / 0.8822 GB, free: 17.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03121/1.633, allocations: 22.78 MB / 0.9045 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00882/1.641, allocations: 0.511 MB / 0.905 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001762/1.643, allocations: 0.5312 MB / 0.9055 GB, free: 9.73 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 (1080): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006448/1.65, allocations: 3.114 MB / 0.9085 GB, free: 6.605 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/1.651, allocations: 0.5747 MB / 0.9091 GB, free: 6.023 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3139/1.965, allocations: 9.799 MB / 0.9187 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001129/1.965, allocations: 37.88 kB / 0.9187 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.319e-05/1.965, allocations: 16.53 kB / 0.9187 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/1.965, allocations: 17.75 kB / 0.9187 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04859/2.014, allocations: 19.52 MB / 0.9378 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.934e-05/2.014, allocations: 0 / 0.9378 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/2.017, allocations: 0.5229 MB / 0.9383 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01297/2.03, allocations: 3.716 MB / 0.9419 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0012/2.031, allocations: 64.94 kB / 0.942 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02964/2.061, allocations: 20.69 MB / 0.9622 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/2.061, allocations: 0 / 0.9622 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02843/2.09, allocations: 14.5 MB / 0.9764 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003015/2.093, allocations: 0.6099 MB / 0.977 GB, free: 148.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002912/2.096, allocations: 56 kB / 0.977 GB, free: 148.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005304/2.101, allocations: 218.3 kB / 0.9772 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001523/2.103, allocations: 237.6 kB / 0.9775 GB, free: 148.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007626/2.103, allocations: 91.98 kB / 0.9775 GB, free: 148.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008951/2.112, allocations: 4.141 MB / 0.9816 GB, free: 144.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.212e-06/2.112, allocations: 0 / 0.9816 GB, free: 144.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01215/2.124, allocations: 1.855 MB / 0.9834 GB, free: 142.3 MB / 0.545 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 (262): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00149/2.126, allocations: 218.8 kB / 0.9836 GB, free: 142.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01598/2.142, allocations: 9.842 MB / 0.9932 GB, free: 132.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/2.142, allocations: 4 kB / 0.9932 GB, free: 132.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005995/2.148, allocations: 3.89 MB / 0.997 GB, free: 128.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004905/2.153, allocations: 0.7192 MB / 0.9977 GB, free: 127.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03693/2.19, allocations: 18.48 MB / 1.016 GB, free: 109.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009102/2.199, allocations: 4.983 MB / 1.021 GB, free: 104.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009191/2.208, allocations: 2.797 MB / 1.023 GB, free: 101.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002168/2.211, allocations: 387.4 kB / 1.024 GB, free: 101.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.573e-06/2.211, allocations: 0 / 1.024 GB, free: 101.2 MB / 0.545 GB Notification: Performance of Templates: time 0.132/2.343, allocations: 76.47 MB / 1.098 GB, free: 25.06 MB / 0.545 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches