Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001633/0.001633, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.512/1.512, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.000946/0.000946, allocations: 82.88 kB / 270.2 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1956/0.1956, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003433, allocations: 8 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1191, allocations: 58.86 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4059/0.5251, allocations: 108.5 MB / 0.5848 GB, free: 7.535 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00036/0.5255, allocations: 91.7 kB / 0.5849 GB, free: 7.484 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2331/0.7586, allocations: 84.96 MB / 0.6679 GB, free: 10.28 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.228e-06/0.7586, allocations: 0 / 0.6679 GB, free: 10.28 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003843/0.759, allocations: 83.98 kB / 0.668 GB, free: 10.2 MB / 474.7 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.02075/0.7798, allocations: 4.751 MB / 0.6726 GB, free: 5.379 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.7799, allocations: 12.02 kB / 0.6726 GB, free: 5.367 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003825/0.7837, allocations: 0.7707 MB / 0.6734 GB, free: 4.586 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01085/0.7946, allocations: 2.221 MB / 0.6755 GB, free: 2.355 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01452/0.8091, allocations: 4.54 MB / 0.68 GB, free: 13.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/0.8096, allocations: 316.4 kB / 0.6803 GB, free: 13.44 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002411/0.812, allocations: 431.8 kB / 0.6807 GB, free: 13.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02926/0.8413, allocations: 10.78 MB / 0.6912 GB, free: 1.223 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000347/0.8417, allocations: 59.47 kB / 0.6913 GB, free: 1.164 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002262/0.844, allocations: 207.9 kB / 0.6915 GB, free: 0.9609 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001894/0.8459, allocations: 1.01 MB / 0.6925 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02096/0.8668, allocations: 9.079 MB / 0.7013 GB, free: 6.848 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.372/1.239, allocations: 47.5 MB / 0.7477 GB, free: 86.54 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/1.25, allocations: 3.618 MB / 0.7512 GB, free: 85.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008246/1.258, allocations: 4.746 MB / 0.7559 GB, free: 84.24 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/1.258, allocations: 47.88 kB / 0.7559 GB, free: 84.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=142): time 5.701e-06/1.258, allocations: 0 / 0.7559 GB, free: 84.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=148): time 0.02824/1.287, allocations: 12.37 MB / 0.768 GB, free: 81.17 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/1.287, allocations: 150.5 kB / 0.7681 GB, free: 81.01 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006008/1.293, allocations: 3.646 MB / 0.7717 GB, free: 80.65 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004323/1.293, allocations: 46.47 kB / 0.7718 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002365/1.296, allocations: 3.162 MB / 0.7748 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000955/1.297, allocations: 0.5844 MB / 0.7754 GB, free: 78.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/1.297, allocations: 120.6 kB / 0.7755 GB, free: 78.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003341/1.297, allocations: 0.5478 MB / 0.7761 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002987/1.3, allocations: 1.95 MB / 0.778 GB, free: 78.37 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005186/1.305, allocations: 5.64 MB / 0.7835 GB, free: 72.93 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00549/1.311, allocations: 3.249 MB / 0.7866 GB, free: 71.88 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/1.311, allocations: 36.28 kB / 0.7867 GB, free: 71.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01587/1.327, allocations: 8.075 MB / 0.7946 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/1.327, allocations: 62.5 kB / 0.7946 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001858/1.327, allocations: 135.6 kB / 0.7948 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/1.33, allocations: 0.9096 MB / 0.7956 GB, free: 69.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004896/1.335, allocations: 1.355 MB / 0.797 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/1.341, allocations: 4.89 MB / 0.8017 GB, free: 66.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006168/1.347, allocations: 327.7 kB / 0.8021 GB, free: 66.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001956/1.349, allocations: 365.9 kB / 0.8024 GB, free: 66.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 601 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (714): * Single equations (assignments): 710 * 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.005826/1.355, allocations: 2.075 MB / 0.8044 GB, free: 65.17 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.356, allocations: 337.7 kB / 0.8048 GB, free: 64.99 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006515/1.363, allocations: 2.895 MB / 0.8076 GB, free: 63.99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/1.363, allocations: 18.72 kB / 0.8076 GB, free: 63.99 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/1.363, allocations: 15.5 kB / 0.8076 GB, free: 63.98 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-05/1.363, allocations: 10.5 kB / 0.8076 GB, free: 63.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01952/1.382, allocations: 7.16 MB / 0.8146 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-05/1.382, allocations: 3.844 kB / 0.8146 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/1.384, allocations: 253.5 kB / 0.8149 GB, free: 61.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/1.386, allocations: 0.7079 MB / 0.8156 GB, free: 61.29 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002932/1.386, allocations: 27.25 kB / 0.8156 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005526/1.392, allocations: 4.455 MB / 0.8199 GB, free: 58.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/1.392, allocations: 3.688 kB / 0.8199 GB, free: 58.76 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008255/1.4, allocations: 5.233 MB / 0.825 GB, free: 55.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/1.403, allocations: 0.6149 MB / 0.8256 GB, free: 55.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.404, allocations: 20.78 kB / 0.8257 GB, free: 55.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002077/1.406, allocations: 94.41 kB / 0.8258 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003114/1.406, allocations: 87.12 kB / 0.8258 GB, free: 55.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001559/1.406, allocations: 40.5 kB / 0.8259 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005755/1.412, allocations: 2.554 MB / 0.8284 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.41e-07/1.412, allocations: 0 / 0.8284 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007734/1.42, allocations: 0.9583 MB / 0.8293 GB, free: 52 MB / 0.4948 GB 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 () * Number of clocked 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.009407/1.429, allocations: 6.041 MB / 0.8352 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007866/1.437, allocations: 4.71 MB / 0.8398 GB, free: 42.58 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/1.437, allocations: 4 kB / 0.8398 GB, free: 42.58 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002001/1.439, allocations: 1.388 MB / 0.8412 GB, free: 41.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/1.442, allocations: 398.6 kB / 0.8415 GB, free: 41.01 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3695/1.812, allocations: 123.9 MB / 0.9625 GB, free: 72.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006403/1.818, allocations: 3.316 MB / 0.9657 GB, free: 71.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005891/1.824, allocations: 1.834 MB / 0.9675 GB, free: 71.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003346/1.828, allocations: 1.859 MB / 0.9694 GB, free: 71.65 MB / 0.5105 GB Notification: Performance of SimCode: time 1.463e-06/1.828, allocations: 0 / 0.9694 GB, free: 71.65 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1328/1.961, allocations: 73.91 MB / 1.042 GB, free: 37.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/1.961, allocations: 208.5 kB / 1.042 GB, free: 37.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.521/6.482, allocations: 0 / 1.042 GB, free: 37.26 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat