Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001435/0.001435, allocations: 179 kB / 8.364 MB, free: 0.7109 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.002/2.002, 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.001093/0.001093, allocations: 83.33 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.3052/0.3052, allocations: 43.48 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.684e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4942/0.4943, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2214/0.7158, allocations: 107.8 MB / 0.5712 GB, free: 7.391 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.7162, allocations: 83.95 kB / 0.5713 GB, free: 7.309 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6961/1.412, allocations: 83.34 MB / 0.6527 GB, free: 108.1 MB / 475.1 MB Notification: Performance of FrontEnd: time 1.994e-06/1.412, allocations: 2.906 kB / 0.6527 GB, free: 108.1 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002914/1.413, allocations: 85.16 kB / 0.6528 GB, free: 108.1 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.02692/1.44, allocations: 4.505 MB / 0.6572 GB, free: 106.4 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/1.44, allocations: 13.08 kB / 0.6572 GB, free: 106.4 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01805/1.458, allocations: 2.215 MB / 0.6594 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01824/1.476, allocations: 4.519 MB / 0.6638 GB, free: 105.5 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/1.476, allocations: 136.2 kB / 0.6639 GB, free: 105.5 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002551/1.479, allocations: 247.2 kB / 0.6642 GB, free: 105.5 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01652/1.496, allocations: 6.422 MB / 0.6704 GB, free: 105.5 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02389/1.52, allocations: 9.63 MB / 0.6798 GB, free: 101.9 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/1.52, allocations: 53.66 kB / 0.6799 GB, free: 101.9 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001242/1.521, allocations: 30.94 kB / 0.6799 GB, free: 101.9 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002302/1.523, allocations: 1.021 MB / 0.6809 GB, free: 101.7 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06663/1.59, allocations: 45.53 MB / 0.7254 GB, free: 67.55 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00578/1.596, allocations: 3.232 MB / 0.7285 GB, free: 65.88 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00325/1.599, allocations: 1.763 MB / 0.7302 GB, free: 65.13 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01085/1.61, allocations: 4.612 MB / 0.7347 GB, free: 62.38 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/1.61, allocations: 43.31 kB / 0.7348 GB, free: 62.33 MB / 475.1 MB Notification: Performance of pre-optimization done (n=142): time 5.46e-06/1.61, allocations: 0 / 0.7348 GB, free: 62.33 MB / 475.1 MB Notification: Performance of matching and sorting (n=148): time 0.03198/1.642, allocations: 11.08 MB / 0.7456 GB, free: 54.3 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/1.642, allocations: 149.2 kB / 0.7458 GB, free: 54.12 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006289/1.649, allocations: 3.084 MB / 0.7488 GB, free: 51.42 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004043/1.649, allocations: 25.7 kB / 0.7488 GB, free: 51.39 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002552/1.652, allocations: 3.188 MB / 0.7519 GB, free: 48.47 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009499/1.653, allocations: 0.5814 MB / 0.7525 GB, free: 47.95 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006129/1.653, allocations: 0 / 0.7525 GB, free: 47.95 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003716/1.654, allocations: 0.5674 MB / 0.753 GB, free: 47.45 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004106/1.658, allocations: 1.831 MB / 0.7548 GB, free: 45.82 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006924/1.665, allocations: 5.651 MB / 0.7603 GB, free: 38.52 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006737/1.671, allocations: 3.171 MB / 0.7634 GB, free: 35.83 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/1.672, allocations: 44 kB / 0.7635 GB, free: 35.79 MB / 475.1 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.02068/1.692, allocations: 7.217 MB / 0.7705 GB, free: 29.54 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/1.692, allocations: 67.95 kB / 0.7706 GB, free: 29.47 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/1.693, allocations: 136 kB / 0.7707 GB, free: 29.34 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004246/1.697, allocations: 0.9143 MB / 0.7716 GB, free: 28.42 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008739/1.706, allocations: 1.411 MB / 0.773 GB, free: 27.01 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00877/1.715, allocations: 4.606 MB / 0.7775 GB, free: 22.3 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006596/1.721, allocations: 216.3 kB / 0.7777 GB, free: 22.09 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001484/1.723, allocations: 380 kB / 0.778 GB, free: 21.71 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 36 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (744): * Single equations (assignments): 740 * 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.001701/1.724, allocations: 458.6 kB / 0.7785 GB, free: 21.26 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008978/1.733, allocations: 2.987 MB / 0.7814 GB, free: 18.26 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/1.735, allocations: 308.2 kB / 0.7817 GB, free: 17.95 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008753/1.743, allocations: 2.726 MB / 0.7844 GB, free: 15.21 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.427e-05/1.744, allocations: 19.95 kB / 0.7844 GB, free: 15.19 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/1.744, allocations: 7.938 kB / 0.7844 GB, free: 15.18 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.703e-05/1.744, allocations: 11.97 kB / 0.7844 GB, free: 15.17 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01934/1.763, allocations: 6.213 MB / 0.7905 GB, free: 8.934 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-05/1.763, allocations: 0 / 0.7905 GB, free: 8.934 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002552/1.766, allocations: 251.6 kB / 0.7907 GB, free: 8.688 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003755/1.769, allocations: 0.7005 MB / 0.7914 GB, free: 7.984 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/1.77, allocations: 15.98 kB / 0.7914 GB, free: 7.969 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007728/1.778, allocations: 4.184 MB / 0.7955 GB, free: 3.676 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.453e-06/1.778, allocations: 0 / 0.7955 GB, free: 3.676 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/1.79, allocations: 4.996 MB / 0.8004 GB, free: 14.64 MB / 491.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002417/1.792, allocations: 0.5672 MB / 0.8009 GB, free: 14.05 MB / 491.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007515/1.793, allocations: 0 / 0.8009 GB, free: 14.05 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00238/1.795, allocations: 75.88 kB / 0.801 GB, free: 13.98 MB / 491.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004003/1.796, allocations: 89.14 kB / 0.8011 GB, free: 13.89 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/1.796, allocations: 39.98 kB / 0.8011 GB, free: 13.85 MB / 491.1 MB Notification: Performance of sorting global known variables: time 0.005524/1.802, allocations: 2.045 MB / 0.8031 GB, free: 11.82 MB / 491.1 MB Notification: Performance of sort global known variables: time 8.42e-07/1.802, allocations: 0 / 0.8031 GB, free: 11.82 MB / 491.1 MB Notification: Performance of remove unused functions: time 0.007244/1.809, allocations: 0.8282 MB / 0.8039 GB, free: 10.99 MB / 491.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 113 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01465/1.824, allocations: 5.796 MB / 0.8096 GB, free: 5.148 MB / 491.1 MB Notification: Performance of simCode: created initialization part: time 0.01208/1.836, allocations: 4.381 MB / 0.8139 GB, free: 0.7852 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.836, allocations: 0 / 0.8139 GB, free: 0.7852 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003536/1.839, allocations: 1.315 MB / 0.8151 GB, free: 15.46 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/1.843, allocations: 320 kB / 0.8155 GB, free: 15.15 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03363/1.876, allocations: 8.822 MB / 0.8241 GB, free: 6.273 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007604/1.884, allocations: 3.328 MB / 0.8273 GB, free: 2.93 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005007/1.889, allocations: 1.889 MB / 0.8292 GB, free: 1.039 MB / 0.4952 GB Notification: Performance of SimCode: time 3.787e-06/1.889, allocations: 0 / 0.8292 GB, free: 1.039 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.647/6.536, allocations: 94.04 MB / 0.921 GB, free: 83.53 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat