Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 202.8 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.6 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007848/0.0007848, allocations: 97.08 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1746/0.1746, allocations: 44.84 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.0002279, allocations: 8 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09473, allocations: 62.95 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.243/0.3377, allocations: 66.4 MB / 0.5802 GB, free: 11.1 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03187/0.3696, allocations: 14.02 MB / 0.5939 GB, free: 13.04 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01174/0.3814, allocations: 323.1 kB / 0.5942 GB, free: 12.72 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009497/0.3909, allocations: 3.417 MB / 0.5975 GB, free: 9.289 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02433/0.4153, allocations: 10.18 MB / 0.6074 GB, free: 15.07 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005219/0.4205, allocations: 1.28 MB / 0.6087 GB, free: 13.79 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07131/0.4918, allocations: 64.7 MB / 0.6719 GB, free: 13.01 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009798/0.5017, allocations: 6.376 MB / 0.6781 GB, free: 6.578 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004256/0.506, allocations: 2.246 MB / 0.6803 GB, free: 4.324 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005095/0.5111, allocations: 3.657 MB / 0.6839 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001625/0.5127, allocations: 244 kB / 0.6841 GB, free: 428 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003546/0.5163, allocations: 1.186 MB / 0.6853 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.003436/0.5198, allocations: 2.977 MB / 0.6882 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.001902/0.5217, allocations: 1.298 MB / 0.6894 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01085/0.5325, allocations: 8.51 MB / 0.6977 GB, free: 2.402 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.5326, allocations: 0 / 0.6977 GB, free: 2.402 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.356e-06/0.5326, allocations: 0 / 0.6977 GB, free: 2.402 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004327/0.533, allocations: 4 kB / 0.6978 GB, free: 2.398 MB / 0.4948 GB 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.01621/0.5493, allocations: 6.916 MB / 0.7045 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.5493, allocations: 12.02 kB / 0.7045 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02655/0.5759, allocations: 3.758 MB / 0.7082 GB, free: 7.609 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/0.5872, allocations: 5.083 MB / 0.7132 GB, free: 2.449 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002868/0.5876, allocations: 365.5 kB / 0.7135 GB, free: 2.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.5889, allocations: 0.5112 MB / 0.714 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2392/0.8281, allocations: 16.25 MB / 0.7299 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.8284, allocations: 80.86 kB / 0.7299 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006742/0.829, allocations: 237.5 kB / 0.7302 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004821/0.8339, allocations: 2.919 MB / 0.733 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02437/0.8583, allocations: 13.68 MB / 0.7464 GB, free: 157.8 MB / 0.5105 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.06008/0.9184, allocations: 64.71 MB / 0.8096 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01903/0.9374, allocations: 7.929 MB / 0.8173 GB, free: 84.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004718/0.9422, allocations: 4.265 MB / 0.8215 GB, free: 79.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/0.9676, allocations: 19.28 MB / 0.8403 GB, free: 60 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.9677, allocations: 64.56 kB / 0.8404 GB, free: 59.93 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=284): time 5.13e-06/0.9677, allocations: 4 kB / 0.8404 GB, free: 59.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=366): time 0.1529/1.121, allocations: 52.46 MB / 0.8916 GB, free: 7.324 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/1.121, allocations: 269.8 kB / 0.8919 GB, free: 7.004 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006765/1.127, allocations: 6.019 MB / 0.8977 GB, free: 0.9727 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006589/1.128, allocations: 77.7 kB / 0.8978 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003004/1.131, allocations: 4.683 MB / 0.9024 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00151/1.133, allocations: 1.347 MB / 0.9037 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004453/1.133, allocations: 192 kB / 0.9039 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004749/1.134, allocations: 0.7072 MB / 0.9046 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005716/1.139, allocations: 4.165 MB / 0.9086 GB, free: 5.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2132/1.353, allocations: 9.388 MB / 0.9178 GB, free: 161.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/1.365, allocations: 6.046 MB / 0.9237 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003004/1.365, allocations: 51.62 kB / 0.9238 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03829/1.403, allocations: 17.49 MB / 0.9409 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004066/1.404, allocations: 86.64 kB / 0.9409 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004507/1.404, allocations: 180.9 kB / 0.9411 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01417/1.419, allocations: 4.687 MB / 0.9457 GB, free: 153.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007105/1.426, allocations: 2.116 MB / 0.9478 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03016/1.456, allocations: 23.7 MB / 0.9709 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007136/1.463, allocations: 0.5229 MB / 0.9714 GB, free: 139.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/1.465, allocations: 0.5443 MB / 0.9719 GB, free: 139.1 MB / 0.5261 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 (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%) 44,(3,88.9%) 49} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005609/1.47, allocations: 3.115 MB / 0.975 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001261/1.472, allocations: 0.5643 MB / 0.9755 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02007/1.492, allocations: 10.72 MB / 0.986 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.007e-05/1.492, allocations: 42.27 kB / 0.986 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-05/1.492, allocations: 16 kB / 0.9861 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.529e-05/1.492, allocations: 15.94 kB / 0.9861 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0368/1.529, allocations: 20.48 MB / 1.006 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.25e-05/1.529, allocations: 1.312 kB / 1.006 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002603/1.531, allocations: 0.5304 MB / 1.007 GB, free: 104 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01283/1.544, allocations: 4.268 MB / 1.011 GB, free: 99.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005024/1.545, allocations: 65.98 kB / 1.011 GB, free: 99.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02617/1.571, allocations: 21.54 MB / 1.032 GB, free: 77.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.571, allocations: 1.969 kB / 1.032 GB, free: 77.91 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02604/1.597, allocations: 15.57 MB / 1.047 GB, free: 62.25 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.599, allocations: 0.5991 MB / 1.048 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001482/1.6, allocations: 57.33 kB / 1.048 GB, free: 61.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00353/1.604, allocations: 230.9 kB / 1.048 GB, free: 61.35 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008271/1.604, allocations: 230.1 kB / 1.048 GB, free: 61.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002762/1.605, allocations: 101.4 kB / 1.048 GB, free: 61.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004952/1.61, allocations: 3.734 MB / 1.052 GB, free: 57.29 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/1.61, allocations: 0 / 1.052 GB, free: 57.29 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00989/1.62, allocations: 1.927 MB / 1.054 GB, free: 55.37 MB / 0.5261 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 (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.0006625/1.62, allocations: 222.3 kB / 1.054 GB, free: 55.16 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01341/1.634, allocations: 10.4 MB / 1.064 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.634, allocations: 0.8125 kB / 1.064 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004674/1.638, allocations: 4.077 MB / 1.068 GB, free: 40.62 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003932/1.642, allocations: 0.7375 MB / 1.069 GB, free: 39.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02298/1.665, allocations: 19.51 MB / 1.088 GB, free: 20.35 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004032/1.669, allocations: 4.823 MB / 1.093 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001663/1.671, allocations: 448.6 kB / 1.093 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of SimCode: time 1.032e-06/1.671, allocations: 0 / 1.093 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of Templates: time 0.3753/2.046, allocations: 152.3 MB / 1.242 GB, free: 62.92 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches