Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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_3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",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.00149/0.00149, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.999/1.999, 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.001113/0.001112, allocations: 89.34 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.3631/0.3631, allocations: 43.48 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.024e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4081/0.4081, allocations: 58.86 MB / 477.2 MB, free: 5.297 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2103/0.6185, allocations: 108.5 MB / 0.572 GB, free: 6.715 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.6189, allocations: 91.38 kB / 0.5721 GB, free: 6.629 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8683/1.487, allocations: 96.36 MB / 0.6662 GB, free: 107.2 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.094e-06/1.487, allocations: 0 / 0.6662 GB, free: 107.2 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004525/1.488, allocations: 104.3 kB / 0.6663 GB, free: 107.2 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: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.03183/1.52, allocations: 5.518 MB / 0.6717 GB, free: 105.1 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/1.52, allocations: 7.562 kB / 0.6717 GB, free: 105.1 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01889/1.539, allocations: 2.317 MB / 0.6739 GB, free: 104.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/1.559, allocations: 4.979 MB / 0.6788 GB, free: 104.1 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/1.559, allocations: 170.2 kB / 0.679 GB, free: 104.1 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003133/1.562, allocations: 308.1 kB / 0.6793 GB, free: 104.1 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02088/1.583, allocations: 7.817 MB / 0.6869 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03099/1.614, allocations: 11.49 MB / 0.6981 GB, free: 96.51 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003219/1.614, allocations: 74.08 kB / 0.6982 GB, free: 96.46 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00227/1.617, allocations: 30.59 kB / 0.6982 GB, free: 96.46 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002714/1.619, allocations: 1.217 MB / 0.6994 GB, free: 96.24 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08889/1.708, allocations: 53.63 MB / 0.7518 GB, free: 51.8 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007928/1.716, allocations: 4.476 MB / 0.7561 GB, free: 47.18 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006025/1.722, allocations: 3.225 MB / 0.7593 GB, free: 43.95 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002351/1.725, allocations: 1.014 MB / 0.7603 GB, free: 42.78 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.244e-05/1.725, allocations: 55.81 kB / 0.7603 GB, free: 42.72 MB / 475.1 MB Notification: Performance of pre-optimization done (n=224): time 7.394e-06/1.725, allocations: 0 / 0.7603 GB, free: 42.72 MB / 475.1 MB Notification: Performance of matching and sorting (n=255): time 0.07484/1.8, allocations: 22.93 MB / 0.7827 GB, free: 19.68 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/1.8, allocations: 162.5 kB / 0.7829 GB, free: 19.49 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005928/1.806, allocations: 3.297 MB / 0.7861 GB, free: 16.21 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007451/1.807, allocations: 25.7 kB / 0.7861 GB, free: 16.18 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/1.809, allocations: 3.57 MB / 0.7896 GB, free: 12.56 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00142/1.81, allocations: 0.925 MB / 0.7905 GB, free: 11.62 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005275/1.811, allocations: 0 / 0.7905 GB, free: 11.62 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003833/1.811, allocations: 0.6084 MB / 0.7911 GB, free: 11.01 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005729/1.817, allocations: 2.888 MB / 0.7939 GB, free: 8.117 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008262/1.825, allocations: 6.955 MB / 0.8007 GB, free: 15.12 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01096/1.836, allocations: 4.396 MB / 0.805 GB, free: 10.73 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/1.837, allocations: 40 kB / 0.8051 GB, free: 10.69 MB / 491.1 MB Notification: Performance of matching and sorting (n=924) (initialization): time 0.03251/1.869, allocations: 9.89 MB / 0.8147 GB, free: 0.7891 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/1.869, allocations: 68 kB / 0.8148 GB, free: 0.7227 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002548/1.87, allocations: 144 kB / 0.8149 GB, free: 0.582 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005245/1.875, allocations: 1.133 MB / 0.816 GB, free: 15.45 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/1.887, allocations: 1.766 MB / 0.8177 GB, free: 13.68 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/1.9, allocations: 5.629 MB / 0.8232 GB, free: 7.938 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00876/1.909, allocations: 291.5 kB / 0.8235 GB, free: 7.652 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/1.911, allocations: 439.9 kB / 0.8239 GB, free: 7.223 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (885): * Single equations (assignments): 881 * 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.002981/1.914, allocations: 490.3 kB / 0.8244 GB, free: 6.738 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01814/1.932, allocations: 5.476 MB / 0.8298 GB, free: 1.246 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001826/1.934, allocations: 371.2 kB / 0.8301 GB, free: 0.8789 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3912/2.325, allocations: 5.359 MB / 0.8353 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.897e-05/2.326, allocations: 27.22 kB / 0.8354 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.842e-05/2.326, allocations: 4.5 kB / 0.8354 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.431e-05/2.326, allocations: 12.97 kB / 0.8354 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03611/2.362, allocations: 11.17 MB / 0.8463 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.973e-05/2.362, allocations: 4.281 kB / 0.8463 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005668/2.368, allocations: 0.5129 MB / 0.8468 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004654/2.372, allocations: 0.9326 MB / 0.8477 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007553/2.373, allocations: 11.19 kB / 0.8477 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/2.384, allocations: 5.336 MB / 0.8529 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.067e-05/2.384, allocations: 5.875 kB / 0.8529 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02185/2.406, allocations: 9.574 MB / 0.8623 GB, free: 117.5 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003571/2.41, allocations: 0.8533 MB / 0.8631 GB, free: 117.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00118/2.411, allocations: 3.656 kB / 0.8631 GB, free: 117.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004297/2.415, allocations: 154.8 kB / 0.8633 GB, free: 117.2 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008437/2.416, allocations: 158.3 kB / 0.8634 GB, free: 117.2 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/2.417, allocations: 73.5 kB / 0.8635 GB, free: 117.2 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.005092/2.422, allocations: 2.195 MB / 0.8656 GB, free: 116.4 MB / 0.4952 GB Notification: Performance of sort global known variables: time 6.81e-07/2.422, allocations: 0 / 0.8656 GB, free: 116.4 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008725/2.43, allocations: 1.093 MB / 0.8667 GB, free: 116.4 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * 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 Backend phase and start with SimCode phase: time 0.02231/2.453, allocations: 10.92 MB / 0.8774 GB, free: 111.3 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01585/2.469, allocations: 6.901 MB / 0.8841 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/2.469, allocations: 0 / 0.8841 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.006953/2.476, allocations: 2.662 MB / 0.8867 GB, free: 108.1 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004029/2.48, allocations: 357.1 kB / 0.887 GB, free: 108 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04125/2.521, allocations: 12.02 MB / 0.8988 GB, free: 103.7 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009072/2.53, allocations: 3.913 MB / 0.9026 GB, free: 102.3 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006881/2.537, allocations: 2.353 MB / 0.9049 GB, free: 100.4 MB / 0.4952 GB Notification: Performance of SimCode: time 1.152e-06/2.537, allocations: 0 / 0.9049 GB, free: 100.4 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.276/7.813, allocations: 118.1 MB / 1.02 GB, free: 116.4 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat