Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 175.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009204/0.0009205, allocations: 102.3 kB / 292.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3334/0.3334, allocations: 44.21 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 8 kB / 460 MB, free: 1.461 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3923, allocations: 61.9 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.5446, allocations: 109.7 MB / 0.6167 GB, free: 1.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.5449, allocations: 87.92 kB / 0.6168 GB, free: 1.348 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5314/1.076, allocations: 81.96 MB / 0.6969 GB, free: 96.62 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.076, allocations: 0 / 0.6969 GB, free: 96.62 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002885/1.077, allocations: 80.12 kB / 0.6969 GB, free: 96.62 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.02171/1.098, allocations: 4.588 MB / 0.7014 GB, free: 94.83 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.001e-05/1.098, allocations: 9.062 kB / 0.7014 GB, free: 94.83 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004508/1.103, allocations: 0.7294 MB / 0.7021 GB, free: 94.76 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/1.114, allocations: 2.173 MB / 0.7043 GB, free: 94.48 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0153/1.129, allocations: 4.306 MB / 0.7085 GB, free: 93.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/1.13, allocations: 305.8 kB / 0.7088 GB, free: 93.88 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002779/1.133, allocations: 405.4 kB / 0.7091 GB, free: 93.87 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03314/1.166, allocations: 10.31 MB / 0.7192 GB, free: 90.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005819/1.167, allocations: 54.09 kB / 0.7193 GB, free: 90.33 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002431/1.169, allocations: 200.7 kB / 0.7195 GB, free: 90.22 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/1.171, allocations: 0.9521 MB / 0.7204 GB, free: 90.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01875/1.19, allocations: 8.648 MB / 0.7288 GB, free: 87.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05839/1.248, allocations: 45.89 MB / 0.7737 GB, free: 52.58 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/1.259, allocations: 3.398 MB / 0.777 GB, free: 51.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01029/1.269, allocations: 4.444 MB / 0.7813 GB, free: 48.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/1.269, allocations: 45.75 kB / 0.7814 GB, free: 48.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=121): time 4.218e-06/1.269, allocations: 0 / 0.7814 GB, free: 48.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=127): time 0.04335/1.313, allocations: 11.32 MB / 0.7924 GB, free: 43.65 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/1.313, allocations: 140.5 kB / 0.7925 GB, free: 43.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009805/1.323, allocations: 3.555 MB / 0.796 GB, free: 41.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003718/1.323, allocations: 41.7 kB / 0.796 GB, free: 41.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00237/1.325, allocations: 3.043 MB / 0.799 GB, free: 38.36 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008327/1.326, allocations: 0.5183 MB / 0.7995 GB, free: 37.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007102/1.327, allocations: 116 kB / 0.7996 GB, free: 37.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000592/1.328, allocations: 0.5355 MB / 0.8002 GB, free: 37.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003144/1.331, allocations: 1.788 MB / 0.8019 GB, free: 35.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0054/1.336, allocations: 5.359 MB / 0.8071 GB, free: 29.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004542/1.341, allocations: 3.02 MB / 0.8101 GB, free: 26.35 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/1.341, allocations: 36 kB / 0.8101 GB, free: 26.31 MB / 490.7 MB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01867/1.36, allocations: 7.597 MB / 0.8175 GB, free: 19.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003155/1.36, allocations: 63.95 kB / 0.8176 GB, free: 19.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004109/1.36, allocations: 128 kB / 0.8177 GB, free: 19.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003043/1.363, allocations: 0.9127 MB / 0.8186 GB, free: 18.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004523/1.368, allocations: 1.281 MB / 0.8199 GB, free: 17.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005816/1.374, allocations: 4.874 MB / 0.8246 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005282/1.379, allocations: 303.6 kB / 0.8249 GB, free: 12.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/1.381, allocations: 355.9 kB / 0.8253 GB, free: 12.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * Number of states: 0 () * Number of discrete variables: 38 (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.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (676): * Single equations (assignments): 672 * 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.005239/1.386, allocations: 1.991 MB / 0.8272 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009765/1.387, allocations: 331.7 kB / 0.8275 GB, free: 9.926 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005428/1.392, allocations: 2.513 MB / 0.83 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.575e-05/1.392, allocations: 12 kB / 0.83 GB, free: 7.383 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/1.392, allocations: 4 kB / 0.83 GB, free: 7.379 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.766e-05/1.392, allocations: 11.94 kB / 0.83 GB, free: 7.367 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01656/1.409, allocations: 6.47 MB / 0.8363 GB, free: 0.8672 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.438e-05/1.409, allocations: 0 / 0.8363 GB, free: 0.8672 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/1.41, allocations: 207.7 kB / 0.8365 GB, free: 0.6641 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002168/1.412, allocations: 0.6913 MB / 0.8372 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002277/1.413, allocations: 27.98 kB / 0.8372 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007229/1.42, allocations: 4.444 MB / 0.8416 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/1.42, allocations: 7.969 kB / 0.8416 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008442/1.428, allocations: 4.637 MB / 0.8461 GB, free: 6.695 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/1.43, allocations: 392.6 kB / 0.8465 GB, free: 6.289 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/1.432, allocations: 24 kB / 0.8465 GB, free: 6.266 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002003/1.434, allocations: 79.89 kB / 0.8466 GB, free: 6.188 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002921/1.434, allocations: 79.14 kB / 0.8466 GB, free: 6.109 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/1.434, allocations: 39.94 kB / 0.8467 GB, free: 6.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00642/1.44, allocations: 2.482 MB / 0.8491 GB, free: 3.609 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.41e-07/1.44, allocations: 0 / 0.8491 GB, free: 3.609 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007247/1.448, allocations: 0.8985 MB / 0.85 GB, free: 2.711 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 (95): * Single equations (assignments): 91 * 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.0101/1.458, allocations: 5.453 MB / 0.8553 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0094/1.467, allocations: 4.303 MB / 0.8595 GB, free: 8.938 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.467, allocations: 3.938 kB / 0.8595 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002433/1.47, allocations: 1.206 MB / 0.8607 GB, free: 7.711 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003394/1.473, allocations: 385.1 kB / 0.8611 GB, free: 7.34 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.387/1.86, allocations: 119.3 MB / 0.9775 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003552/1.864, allocations: 3.181 MB / 0.9806 GB, free: 42.52 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004557/1.868, allocations: 1.735 MB / 0.9823 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002787/1.871, allocations: 1.755 MB / 0.984 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of SimCode: time 8.31e-07/1.871, allocations: 0 / 0.984 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1342/2.005, allocations: 70.46 MB / 1.053 GB, free: 20.56 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/2.006, allocations: 204.8 kB / 1.053 GB, free: 20.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.389/6.395, allocations: 0 / 1.053 GB, free: 20.32 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat