Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002113/0.002113, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 97.84 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3002/0.3002, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.698e-05/1.705e-05, allocations: 224 / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4081/0.4081, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.6075, allocations: 108.5 MB / 0.5719 GB, free: 6.738 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.6079, allocations: 83.95 kB / 0.572 GB, free: 6.656 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7478/1.356, allocations: 96.37 MB / 0.6661 GB, free: 107.2 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.356, allocations: 1.156 kB / 0.6661 GB, free: 107.2 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003372/1.356, allocations: 103.8 kB / 0.6662 GB, free: 107.2 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.03288/1.389, allocations: 5.502 MB / 0.6716 GB, free: 105.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/1.389, allocations: 15.69 kB / 0.6716 GB, free: 105.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01839/1.407, allocations: 2.321 MB / 0.6738 GB, free: 104.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01907/1.427, allocations: 4.974 MB / 0.6787 GB, free: 104.2 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/1.427, allocations: 169.3 kB / 0.6789 GB, free: 104.2 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002794/1.43, allocations: 308.7 kB / 0.6792 GB, free: 104.2 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02052/1.45, allocations: 7.819 MB / 0.6868 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0327/1.483, allocations: 11.49 MB / 0.698 GB, free: 96.54 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004096/1.484, allocations: 68.98 kB / 0.6981 GB, free: 96.5 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003137/1.487, allocations: 31.41 kB / 0.6981 GB, free: 96.5 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003119/1.49, allocations: 1.215 MB / 0.6993 GB, free: 96.28 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0919/1.582, allocations: 53.64 MB / 0.7517 GB, free: 51.85 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008791/1.591, allocations: 4.476 MB / 0.756 GB, free: 47.23 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005808/1.597, allocations: 3.221 MB / 0.7592 GB, free: 44.01 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002337/1.599, allocations: 1.014 MB / 0.7602 GB, free: 42.84 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.752e-05/1.599, allocations: 59.81 kB / 0.7602 GB, free: 42.77 MB / 475.1 MB Notification: Performance of pre-optimization done (n=224): time 5.901e-06/1.599, allocations: 0 / 0.7602 GB, free: 42.77 MB / 475.1 MB Notification: Performance of matching and sorting (n=255): time 0.08253/1.682, allocations: 22.92 MB / 0.7826 GB, free: 19.74 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/1.682, allocations: 162.5 kB / 0.7828 GB, free: 19.55 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007222/1.689, allocations: 3.297 MB / 0.786 GB, free: 16.27 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008225/1.69, allocations: 29.7 kB / 0.786 GB, free: 16.24 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002998/1.693, allocations: 3.566 MB / 0.7895 GB, free: 12.62 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001684/1.695, allocations: 0.925 MB / 0.7904 GB, free: 11.68 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009213/1.696, allocations: 0 / 0.7904 GB, free: 11.68 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0005119/1.696, allocations: 0.6084 MB / 0.791 GB, free: 11.07 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006794/1.703, allocations: 2.888 MB / 0.7938 GB, free: 8.176 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009912/1.713, allocations: 6.951 MB / 0.8006 GB, free: 15.19 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/1.724, allocations: 4.396 MB / 0.8049 GB, free: 10.79 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001566/1.725, allocations: 44 kB / 0.805 GB, free: 10.75 MB / 491.1 MB Notification: Performance of matching and sorting (n=924) (initialization): time 0.03208/1.757, allocations: 9.886 MB / 0.8146 GB, free: 0.8516 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/1.757, allocations: 72 kB / 0.8147 GB, free: 0.7812 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002476/1.757, allocations: 144.3 kB / 0.8148 GB, free: 0.6406 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00525/1.762, allocations: 1.132 MB / 0.8159 GB, free: 15.5 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01266/1.775, allocations: 1.766 MB / 0.8176 GB, free: 13.73 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/1.788, allocations: 5.63 MB / 0.8231 GB, free: 7.992 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008572/1.797, allocations: 298.5 kB / 0.8234 GB, free: 7.703 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002107/1.799, allocations: 435.9 kB / 0.8238 GB, free: 7.277 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (885): * Single equations (assignments): 881 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002647/1.801, allocations: 490.1 kB / 0.8243 GB, free: 6.793 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/1.803, allocations: 367.2 kB / 0.8247 GB, free: 6.43 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01797/1.821, allocations: 5.364 MB / 0.8299 GB, free: 1.047 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.998e-05/1.821, allocations: 28 kB / 0.8299 GB, free: 1.02 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.821, allocations: 4 kB / 0.8299 GB, free: 1.016 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.026e-05/1.821, allocations: 15.95 kB / 0.8299 GB, free: 1 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3921/2.213, allocations: 11.15 MB / 0.8408 GB, free: 123.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-05/2.213, allocations: 3.656 kB / 0.8408 GB, free: 123.4 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005646/2.219, allocations: 0.5162 MB / 0.8413 GB, free: 123.4 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004765/2.224, allocations: 0.9295 MB / 0.8423 GB, free: 123.4 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006968/2.224, allocations: 13.38 kB / 0.8423 GB, free: 123.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/2.235, allocations: 5.343 MB / 0.8475 GB, free: 122.1 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/2.235, allocations: 6.375 kB / 0.8475 GB, free: 122.1 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02244/2.258, allocations: 9.565 MB / 0.8568 GB, free: 119.6 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003464/2.261, allocations: 0.8569 MB / 0.8577 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009651/2.262, allocations: 10.52 kB / 0.8577 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003728/2.266, allocations: 149.6 kB / 0.8578 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006371/2.267, allocations: 158.7 kB / 0.858 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003195/2.267, allocations: 72.84 kB / 0.858 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.004757/2.272, allocations: 2.194 MB / 0.8602 GB, free: 118.5 MB / 0.4952 GB Notification: Performance of sort global known variables: time 8.52e-07/2.272, allocations: 0 / 0.8602 GB, free: 118.5 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008725/2.28, allocations: 1.086 MB / 0.8612 GB, free: 118.5 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00083/2.281, allocations: 158.9 kB / 0.8614 GB, free: 118.4 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.0147/2.296, allocations: 6.888 MB / 0.8681 GB, free: 116.3 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/2.296, allocations: 6.875 kB / 0.8681 GB, free: 116.3 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.005761/2.302, allocations: 2.665 MB / 0.8707 GB, free: 115.2 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003229/2.305, allocations: 350.3 kB / 0.8711 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/2.333, allocations: 10.55 MB / 0.8814 GB, free: 111.2 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008684/2.342, allocations: 3.908 MB / 0.8852 GB, free: 109.8 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002794/2.345, allocations: 354.9 kB / 0.8855 GB, free: 109.8 MB / 0.4952 GB Notification: Performance of SimCode: time 1.683e-06/2.345, allocations: 0 / 0.8855 GB, free: 109.8 MB / 0.4952 GB Notification: Performance of Templates: time 0.1597/2.505, allocations: 88.21 MB / 0.9717 GB, free: 39.23 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_3/Rotor1D_3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches