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.001427/0.001427, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009167/0.0009166, allocations: 78.23 kB / 261.7 MB, free: 1.684 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.1933/0.1933, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.815e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 58.85 MB / 477.2 MB, free: 1.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4303/0.5439, allocations: 107.8 MB / 0.5713 GB, free: 3.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.5442, allocations: 86.45 kB / 0.5714 GB, free: 3.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2148/0.759, allocations: 83.35 MB / 0.6528 GB, free: 8.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7591, allocations: 0 / 0.6528 GB, free: 8.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002496/0.7593, allocations: 87.92 kB / 0.6528 GB, free: 8.324 MB / 458.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.01989/0.7792, allocations: 4.505 MB / 0.6572 GB, free: 3.758 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.7793, allocations: 8.031 kB / 0.6572 GB, free: 3.75 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01094/0.7903, allocations: 2.217 MB / 0.6594 GB, free: 1.523 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.802, allocations: 4.508 MB / 0.6638 GB, free: 12.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.8022, allocations: 144 kB / 0.664 GB, free: 12.81 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001741/0.804, allocations: 255.8 kB / 0.6642 GB, free: 12.56 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01239/0.8164, allocations: 6.412 MB / 0.6705 GB, free: 6.141 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02102/0.8374, allocations: 9.63 MB / 0.6799 GB, free: 11.51 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002306/0.8377, allocations: 59.47 kB / 0.6799 GB, free: 11.45 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001203/0.8389, allocations: 32 kB / 0.6799 GB, free: 11.42 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00161/0.8405, allocations: 1.01 MB / 0.6809 GB, free: 10.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.358/1.199, allocations: 45.52 MB / 0.7254 GB, free: 96.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005392/1.204, allocations: 3.232 MB / 0.7285 GB, free: 96.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/1.207, allocations: 1.754 MB / 0.7303 GB, free: 96.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0129/1.22, allocations: 4.612 MB / 0.7348 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.086e-05/1.22, allocations: 53.86 kB / 0.7348 GB, free: 94.55 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=142): time 8.236e-06/1.22, allocations: 3.703 kB / 0.7348 GB, free: 94.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=148): time 0.02605/1.246, allocations: 11.07 MB / 0.7456 GB, free: 91.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/1.246, allocations: 143.8 kB / 0.7458 GB, free: 91.78 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004765/1.251, allocations: 3.078 MB / 0.7488 GB, free: 91.46 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003204/1.251, allocations: 29.83 kB / 0.7488 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00158/1.253, allocations: 3.224 MB / 0.7519 GB, free: 89.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005612/1.253, allocations: 0.5818 MB / 0.7525 GB, free: 89.39 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/1.254, allocations: 3.969 kB / 0.7525 GB, free: 89.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002417/1.254, allocations: 0.5556 MB / 0.7531 GB, free: 89.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002308/1.256, allocations: 1.825 MB / 0.7548 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004295/1.261, allocations: 5.655 MB / 0.7604 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/1.265, allocations: 3.184 MB / 0.7635 GB, free: 84.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.603e-05/1.265, allocations: 39.44 kB / 0.7635 GB, free: 84.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=783) (initialization): time 0.0144/1.279, allocations: 7.289 MB / 0.7706 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.279, allocations: 66.88 kB / 0.7707 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/1.279, allocations: 141.5 kB / 0.7708 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/1.282, allocations: 0.9175 MB / 0.7717 GB, free: 82.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005101/1.287, allocations: 1.418 MB / 0.7731 GB, free: 81.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005603/1.293, allocations: 4.608 MB / 0.7776 GB, free: 79.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004854/1.297, allocations: 211.2 kB / 0.7778 GB, free: 79.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.299, allocations: 384.5 kB / 0.7782 GB, free: 79.35 MB / 0.4948 GB 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.001889/1.301, allocations: 451.5 kB / 0.7786 GB, free: 78.98 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005367/1.306, allocations: 2.988 MB / 0.7815 GB, free: 78 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007574/1.307, allocations: 309.1 kB / 0.7818 GB, free: 77.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005282/1.312, allocations: 2.731 MB / 0.7845 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/1.312, allocations: 15.62 kB / 0.7845 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/1.312, allocations: 3.562 kB / 0.7845 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/1.312, allocations: 9.453 kB / 0.7845 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01617/1.328, allocations: 6.232 MB / 0.7906 GB, free: 74.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/1.328, allocations: 0 / 0.7906 GB, free: 74.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/1.33, allocations: 247.1 kB / 0.7908 GB, free: 74.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/1.332, allocations: 0.6943 MB / 0.7915 GB, free: 74.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002292/1.332, allocations: 11.22 kB / 0.7915 GB, free: 74.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00495/1.337, allocations: 4.174 MB / 0.7956 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/1.337, allocations: 7.875 kB / 0.7956 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007384/1.345, allocations: 4.999 MB / 0.8005 GB, free: 70.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/1.346, allocations: 0.5652 MB / 0.801 GB, free: 69.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009287/1.347, allocations: 0 / 0.801 GB, free: 69.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/1.349, allocations: 80.97 kB / 0.8011 GB, free: 69.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002796/1.349, allocations: 91.91 kB / 0.8012 GB, free: 69.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/1.349, allocations: 40.94 kB / 0.8012 GB, free: 69.83 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003987/1.353, allocations: 2.053 MB / 0.8033 GB, free: 68.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.51e-07/1.353, allocations: 0 / 0.8033 GB, free: 68.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005553/1.359, allocations: 0.8143 MB / 0.804 GB, free: 68.02 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.00673/1.366, allocations: 5.793 MB / 0.8097 GB, free: 62.92 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006547/1.372, allocations: 4.394 MB / 0.814 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/1.372, allocations: 0 / 0.814 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001512/1.374, allocations: 1.311 MB / 0.8153 GB, free: 57.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/1.376, allocations: 313.7 kB / 0.8156 GB, free: 57.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02368/1.4, allocations: 8.36 MB / 0.8237 GB, free: 50.28 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004797/1.405, allocations: 3.323 MB / 0.827 GB, free: 47.76 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004931/1.409, allocations: 1.868 MB / 0.8288 GB, free: 46.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002653/1.412, allocations: 1.831 MB / 0.8306 GB, free: 44.91 MB / 0.4948 GB Notification: Performance of SimCode: time 1.333e-06/1.412, allocations: 4 kB / 0.8306 GB, free: 44.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1131/1.525, allocations: 67.48 MB / 0.8965 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/1.526, allocations: 145.2 kB / 0.8966 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.047/5.572, allocations: 4 kB / 0.8966 GB, free: 14.21 MB / 0.5261 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