Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00086/0.00086, allocations: 173.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.166/1.166, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006924/0.0006924, allocations: 96.83 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2912/0.2912, allocations: 43.57 MB / 363.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003764, allocations: 16 kB / 432 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09594/0.09633, allocations: 58.86 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.2548/0.3511, allocations: 114.3 MB / 0.5909 GB, free: 1.027 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04844/0.3996, allocations: 22.58 MB / 0.613 GB, free: 12.79 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02207/0.4217, allocations: 0.5222 MB / 0.6135 GB, free: 12.27 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01692/0.4387, allocations: 6.037 MB / 0.6194 GB, free: 6.621 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04244/0.4812, allocations: 17.46 MB / 0.6364 GB, free: 5.098 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007211/0.4884, allocations: 1.291 MB / 0.6377 GB, free: 3.805 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.2942/0.7827, allocations: 67.78 MB / 0.7039 GB, free: 35.45 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01423/0.7969, allocations: 11.09 MB / 0.7147 GB, free: 34.29 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00477/0.8018, allocations: 2.669 MB / 0.7173 GB, free: 34.29 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006194/0.808, allocations: 4.316 MB / 0.7215 GB, free: 33.75 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001519/0.8095, allocations: 308 kB / 0.7218 GB, free: 33.45 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003491/0.813, allocations: 1.373 MB / 0.7231 GB, free: 32.62 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003959/0.817, allocations: 3.732 MB / 0.7268 GB, free: 29.9 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005264/0.8223, allocations: 3.951 MB / 0.7307 GB, free: 28.53 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009592/0.8319, allocations: 11.62 MB / 0.742 GB, free: 18.44 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.832, allocations: 2.438 kB / 0.742 GB, free: 18.44 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.832, allocations: 0 / 0.742 GB, free: 18.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004626/0.8324, allocations: 0 / 0.742 GB, free: 18.44 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.0164/0.8488, allocations: 8.231 MB / 0.75 GB, free: 10.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.8489, allocations: 8.031 kB / 0.75 GB, free: 10.85 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.865, allocations: 3.796 MB / 0.7538 GB, free: 7.203 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/0.8768, allocations: 6.567 MB / 0.7602 GB, free: 2.445 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003184/0.8772, allocations: 0.4976 MB / 0.7607 GB, free: 2.168 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002074/0.8793, allocations: 0.6664 MB / 0.7613 GB, free: 1.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03254/0.9118, allocations: 19.89 MB / 0.7807 GB, free: 2.355 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002783/0.9122, allocations: 89.45 kB / 0.7808 GB, free: 2.305 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009495/0.9131, allocations: 310.3 kB / 0.7811 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005325/0.9185, allocations: 3.609 MB / 0.7846 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03045/0.9489, allocations: 16.71 MB / 0.801 GB, free: 3.594 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08957/1.039, allocations: 73.19 MB / 0.8724 GB, free: 7.039 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01962/1.058, allocations: 8.492 MB / 0.8807 GB, free: 14.39 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006348/1.065, allocations: 4.548 MB / 0.8852 GB, free: 9.836 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007632/1.065, allocations: 0.6615 MB / 0.8858 GB, free: 9.082 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.835e-05/1.065, allocations: 72.86 kB / 0.8859 GB, free: 9.004 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=311): time 7.615e-06/1.066, allocations: 0 / 0.8859 GB, free: 9.004 MB / 0.5886 GB Notification: Performance of matching and sorting (n=335): time 0.4187/1.484, allocations: 35.69 MB / 0.9207 GB, free: 226 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/1.484, allocations: 300 kB / 0.921 GB, free: 225.7 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/1.495, allocations: 7.77 MB / 0.9286 GB, free: 223 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.0007408/1.496, allocations: 77.39 kB / 0.9287 GB, free: 222.9 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.003091/1.499, allocations: 5.735 MB / 0.9343 GB, free: 218.5 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001615/1.5, allocations: 1.277 MB / 0.9355 GB, free: 217.6 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005428/1.501, allocations: 205.7 kB / 0.9357 GB, free: 217.4 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0004248/1.501, allocations: 0.7349 MB / 0.9364 GB, free: 216.9 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006428/1.508, allocations: 4.076 MB / 0.9404 GB, free: 215.6 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/1.518, allocations: 9.8 MB / 0.95 GB, free: 206.6 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01483/1.533, allocations: 14.84 MB / 0.9645 GB, free: 194.9 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002405/1.533, allocations: 57.41 kB / 0.9645 GB, free: 194.9 MB / 0.5887 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.0258/1.559, allocations: 15.74 MB / 0.9799 GB, free: 188.7 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001362/1.559, allocations: 92.97 kB / 0.98 GB, free: 188.6 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002143/1.559, allocations: 200 kB / 0.9802 GB, free: 188.4 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005212/1.564, allocations: 2.331 MB / 0.9825 GB, free: 186.7 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007188/1.572, allocations: 2.356 MB / 0.9848 GB, free: 184.7 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01429/1.586, allocations: 15.6 MB / 1 GB, free: 169.8 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0079/1.594, allocations: 0.5813 MB / 1.001 GB, free: 169.2 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001749/1.596, allocations: 0.5859 MB / 1.001 GB, free: 168.6 MB / 0.5887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 907 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1250): * Single equations (assignments): 1243 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007297/1.603, allocations: 3.885 MB / 1.005 GB, free: 164.7 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/1.604, allocations: 0.6632 MB / 1.006 GB, free: 164.1 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/1.617, allocations: 7.978 MB / 1.013 GB, free: 156 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.207e-05/1.617, allocations: 36 kB / 1.013 GB, free: 156 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.932e-05/1.617, allocations: 8 kB / 1.013 GB, free: 156 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-05/1.617, allocations: 19.94 kB / 1.013 GB, free: 156 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02823/1.645, allocations: 17.34 MB / 1.03 GB, free: 138.6 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.579e-05/1.645, allocations: 4 kB / 1.03 GB, free: 138.6 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/1.648, allocations: 0.5617 MB / 1.031 GB, free: 138.1 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004775/1.653, allocations: 1.991 MB / 1.033 GB, free: 136.1 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006353/1.654, allocations: 60.92 kB / 1.033 GB, free: 136 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0135/1.667, allocations: 14.45 MB / 1.047 GB, free: 121.1 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.667, allocations: 7.938 kB / 1.047 GB, free: 121.1 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01681/1.684, allocations: 12.36 MB / 1.059 GB, free: 108.6 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003163/1.687, allocations: 1.285 MB / 1.06 GB, free: 107.3 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001473/1.689, allocations: 59.98 kB / 1.06 GB, free: 107.2 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003433/1.692, allocations: 243.7 kB / 1.061 GB, free: 107 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006328/1.693, allocations: 187.7 kB / 1.061 GB, free: 106.8 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.693, allocations: 91.92 kB / 1.061 GB, free: 106.7 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.007186/1.7, allocations: 4.942 MB / 1.066 GB, free: 101.8 MB / 0.5887 GB Notification: Performance of sort global known variables: time 6.91e-07/1.7, allocations: 0 / 1.066 GB, free: 101.8 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.009044/1.709, allocations: 2.02 MB / 1.068 GB, free: 99.81 MB / 0.5887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007656/1.71, allocations: 199.9 kB / 1.068 GB, free: 99.61 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.01376/1.724, allocations: 10.05 MB / 1.078 GB, free: 89.56 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/1.724, allocations: 0 / 1.078 GB, free: 89.56 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.005057/1.729, allocations: 3.637 MB / 1.081 GB, free: 85.88 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008484/1.737, allocations: 0.9163 MB / 1.082 GB, free: 84.96 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0305/1.768, allocations: 22.88 MB / 1.105 GB, free: 62.03 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006968/1.775, allocations: 5.893 MB / 1.11 GB, free: 56.09 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002244/1.777, allocations: 0.5189 MB / 1.111 GB, free: 55.57 MB / 0.5887 GB Notification: Performance of SimCode: time 6.91e-07/1.777, allocations: 4 kB / 1.111 GB, free: 55.57 MB / 0.5887 GB Notification: Performance of Templates: time 0.4608/2.238, allocations: 258.4 MB / 1.363 GB, free: 40.85 MB / 0.5887 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches