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.001026/0.001026, allocations: 183.5 kB / 13.19 MB, free: 2.129 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.547/1.547, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0009155/0.0009155, allocations: 88.81 kB / 267.1 MB, free: 9.27 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.4451/0.4451, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.893e-05/3.907e-05, allocations: 4 kB / 425.4 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1443, allocations: 58.85 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5121/0.6565, allocations: 108.4 MB / 0.5788 GB, free: 13.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.6568, allocations: 88.28 kB / 0.5789 GB, free: 13.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2371/0.8939, allocations: 85.04 MB / 0.6619 GB, free: 1.055 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.894, allocations: 7.875 kB / 0.6619 GB, free: 1.047 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003216/0.8943, allocations: 80 kB / 0.662 GB, free: 0.9688 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.02159/0.9159, allocations: 4.502 MB / 0.6664 GB, free: 12.4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.149e-05/0.916, allocations: 8.031 kB / 0.6664 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004445/0.9204, allocations: 0.7707 MB / 0.6672 GB, free: 11.61 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01189/0.9324, allocations: 2.217 MB / 0.6693 GB, free: 9.387 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01457/0.947, allocations: 4.514 MB / 0.6737 GB, free: 4.809 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000465/0.9475, allocations: 328.4 kB / 0.674 GB, free: 4.484 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003227/0.9507, allocations: 423.8 kB / 0.6745 GB, free: 4.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03108/0.9818, allocations: 10.68 MB / 0.6849 GB, free: 8.383 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004077/0.9823, allocations: 55.47 kB / 0.6849 GB, free: 8.328 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002478/0.9848, allocations: 207.9 kB / 0.6851 GB, free: 8.125 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002011/0.9868, allocations: 1.014 MB / 0.6861 GB, free: 7.109 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3773/1.364, allocations: 8.901 MB / 0.6948 GB, free: 96.18 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06045/1.425, allocations: 47.52 MB / 0.7412 GB, free: 68.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01093/1.436, allocations: 3.57 MB / 0.7447 GB, free: 67.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002741/1.439, allocations: 1.794 MB / 0.7465 GB, free: 67.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009122/1.448, allocations: 4.758 MB / 0.7511 GB, free: 65.76 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/1.448, allocations: 47.05 kB / 0.7512 GB, free: 65.72 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=142): time 7.414e-06/1.448, allocations: 3.844 kB / 0.7512 GB, free: 65.72 MB / 0.4948 GB Notification: Performance of matching and sorting (n=148): time 0.02518/1.473, allocations: 9.905 MB / 0.7608 GB, free: 62.87 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/1.473, allocations: 145.6 kB / 0.761 GB, free: 62.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008655/1.482, allocations: 3.622 MB / 0.7645 GB, free: 61.42 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005493/1.482, allocations: 46.89 kB / 0.7645 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002477/1.485, allocations: 3.145 MB / 0.7676 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009842/1.486, allocations: 0.5928 MB / 0.7682 GB, free: 58.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003307/1.486, allocations: 118.3 kB / 0.7683 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002869/1.487, allocations: 0.547 MB / 0.7688 GB, free: 58.04 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003689/1.49, allocations: 1.888 MB / 0.7707 GB, free: 57.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006425/1.497, allocations: 5.586 MB / 0.7761 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006537/1.503, allocations: 3.209 MB / 0.7793 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002205/1.504, allocations: 46.16 kB / 0.7793 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.02064/1.524, allocations: 7.947 MB / 0.7871 GB, free: 48.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.524, allocations: 61.05 kB / 0.7871 GB, free: 48.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002528/1.525, allocations: 131 kB / 0.7873 GB, free: 48.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00288/1.528, allocations: 0.9135 MB / 0.7882 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005072/1.533, allocations: 1.356 MB / 0.7895 GB, free: 47.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005866/1.539, allocations: 4.776 MB / 0.7941 GB, free: 45.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006937/1.546, allocations: 310.5 kB / 0.7944 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001684/1.547, allocations: 372.2 kB / 0.7948 GB, free: 45.13 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 () * 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.002674/1.55, allocations: 0.5591 MB / 0.7953 GB, free: 44.67 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.551, allocations: 343.3 kB / 0.7957 GB, free: 44.48 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00683/1.558, allocations: 2.834 MB / 0.7984 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-05/1.558, allocations: 17.19 kB / 0.7985 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-05/1.558, allocations: 3.219 kB / 0.7985 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.239e-05/1.558, allocations: 10.73 kB / 0.7985 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01975/1.578, allocations: 7.088 MB / 0.8054 GB, free: 41.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.92e-05/1.578, allocations: 3.531 kB / 0.8054 GB, free: 41.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/1.58, allocations: 250.9 kB / 0.8056 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002273/1.582, allocations: 0.7 MB / 0.8063 GB, free: 40.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/1.582, allocations: 23.28 kB / 0.8063 GB, free: 40.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005798/1.588, allocations: 4.346 MB / 0.8106 GB, free: 38.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/1.588, allocations: 0 / 0.8106 GB, free: 38.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007494/1.595, allocations: 5.126 MB / 0.8156 GB, free: 36.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002069/1.597, allocations: 0.6143 MB / 0.8162 GB, free: 35.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/1.599, allocations: 34.19 kB / 0.8162 GB, free: 35.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/1.601, allocations: 91.62 kB / 0.8163 GB, free: 35.86 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002955/1.601, allocations: 81.64 kB / 0.8164 GB, free: 35.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/1.601, allocations: 38.97 kB / 0.8164 GB, free: 35.85 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006338/1.608, allocations: 2.518 MB / 0.8189 GB, free: 34.94 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.5e-07/1.608, allocations: 0 / 0.8189 GB, free: 34.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007491/1.615, allocations: 0.96 MB / 0.8198 GB, free: 34.82 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 () * 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.009561/1.625, allocations: 5.939 MB / 0.8256 GB, free: 32.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009094/1.634, allocations: 4.622 MB / 0.8301 GB, free: 30.34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.634, allocations: 3.875 kB / 0.8301 GB, free: 30.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002298/1.636, allocations: 1.347 MB / 0.8315 GB, free: 29.78 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/1.64, allocations: 393.3 kB / 0.8318 GB, free: 29.59 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0312/1.671, allocations: 8.562 MB / 0.8402 GB, free: 23.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005812/1.677, allocations: 3.326 MB / 0.8434 GB, free: 21.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00503/1.682, allocations: 1.832 MB / 0.8452 GB, free: 19.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003252/1.685, allocations: 1.856 MB / 0.847 GB, free: 18.22 MB / 0.4948 GB Notification: Performance of SimCode: time 1.173e-06/1.685, allocations: 4 kB / 0.847 GB, free: 18.21 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4884/2.174, allocations: 74.07 MB / 0.9194 GB, free: 97.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/2.174, allocations: 171.2 kB / 0.9195 GB, free: 97.37 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.735/6.908, allocations: 0 / 0.9195 GB, free: 97.37 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