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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000841/0.0008408, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009959/0.0009958, allocations: 173.8 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.4 MB / 222.8 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3568/0.3568, allocations: 43.54 MB / 314.6 MB, free: 8.898 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004784/0.0004785, allocations: 12 kB / 384 MB, free: 8.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1119, allocations: 58.86 MB / 442.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.2406/0.3525, allocations: 45.56 MB / 488.4 MB, free: 22.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02097/0.3735, allocations: 9.814 MB / 498.3 MB, free: 16.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01151/0.3851, allocations: 207.6 kB / 498.5 MB, free: 16.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007609/0.3928, allocations: 2.33 MB / 0.489 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02381/0.4166, allocations: 6.974 MB / 0.4959 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00372/0.4204, allocations: 0.5098 MB / 0.4964 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008067/0.4284, allocations: 4.381 MB / 0.5006 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009203/0.4377, allocations: 4.508 MB / 0.505 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003596/0.4413, allocations: 1.225 MB / 0.5062 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004262/0.4456, allocations: 1.936 MB / 0.5081 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001314/0.4469, allocations: 141.6 kB / 0.5083 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.4499, allocations: 0.7889 MB / 0.509 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003044/0.453, allocations: 1.663 MB / 0.5107 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002315/0.4553, allocations: 0.8357 MB / 0.5115 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007073/0.4624, allocations: 5.541 MB / 0.5169 GB, free: 2.426 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4624, allocations: 2.75 kB / 0.5169 GB, free: 2.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4624, allocations: 0 / 0.5169 GB, free: 2.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003515/0.4628, allocations: 0 / 0.5169 GB, free: 2.426 MB / 382.1 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.01723/0.48, allocations: 4.458 MB / 0.5212 GB, free: 15.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.4801, allocations: 7.625 kB / 0.5212 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002785/0.4829, allocations: 0.7308 MB / 0.522 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007707/0.4906, allocations: 1.947 MB / 0.5239 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006719/0.4974, allocations: 2.732 MB / 0.5265 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002681/0.4977, allocations: 238.1 kB / 0.5268 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00165/0.4993, allocations: 323.7 kB / 0.5271 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02344/0.5228, allocations: 10.73 MB / 0.5375 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002342/0.5231, allocations: 43.58 kB / 0.5376 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001355/0.5245, allocations: 155.8 kB / 0.5377 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003518/0.528, allocations: 1.986 MB / 0.5397 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02025/0.5483, allocations: 9.611 MB / 0.5491 GB, free: 2.766 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0563/0.6046, allocations: 39.21 MB / 0.5873 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01281/0.6175, allocations: 3.936 MB / 0.5912 GB, free: 6.395 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002879/0.6204, allocations: 1.888 MB / 0.593 GB, free: 4.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/0.6215, allocations: 0.6789 MB / 0.5937 GB, free: 3.707 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.6215, allocations: 43.56 kB / 0.5937 GB, free: 3.656 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.07e-06/0.6216, allocations: 3.938 kB / 0.5937 GB, free: 3.652 MB / 462.1 MB Notification: Performance of matching and sorting (n=157): time 0.04118/0.6627, allocations: 13.95 MB / 0.6074 GB, free: 5.582 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.609e-05/0.6629, allocations: 153.5 kB / 0.6075 GB, free: 5.402 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005603/0.6685, allocations: 4.07 MB / 0.6115 GB, free: 1.305 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004173/0.6689, allocations: 49.69 kB / 0.6115 GB, free: 1.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00251/0.6714, allocations: 3.126 MB / 0.6146 GB, free: 14.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009907/0.6724, allocations: 0.625 MB / 0.6152 GB, free: 13.44 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.6727, allocations: 116 kB / 0.6153 GB, free: 13.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003694/0.6731, allocations: 0.546 MB / 0.6158 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003304/0.6764, allocations: 2.077 MB / 0.6179 GB, free: 10.69 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005631/0.682, allocations: 5.78 MB / 0.6235 GB, free: 3.055 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2214/0.9034, allocations: 3.385 MB / 0.6268 GB, free: 136.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001162/0.9036, allocations: 38.47 kB / 0.6269 GB, free: 136.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=757) (initialization): time 0.0133/0.9169, allocations: 8.358 MB / 0.635 GB, free: 135.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.917, allocations: 66.09 kB / 0.6351 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.9171, allocations: 130.3 kB / 0.6352 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002115/0.9192, allocations: 0.9229 MB / 0.6361 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003717/0.923, allocations: 1.367 MB / 0.6374 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005074/0.9281, allocations: 4.865 MB / 0.6422 GB, free: 133.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0037/0.9318, allocations: 322.1 kB / 0.6425 GB, free: 133.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004357/0.9322, allocations: 370.6 kB / 0.6429 GB, free: 133.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (718): * Single equations (assignments): 714 * 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.003051/0.9353, allocations: 2.089 MB / 0.6449 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004603/0.9357, allocations: 347.3 kB / 0.6452 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004904/0.9407, allocations: 3.173 MB / 0.6483 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/0.9407, allocations: 21.92 kB / 0.6483 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.9407, allocations: 2.844 kB / 0.6484 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.9407, allocations: 9.469 kB / 0.6484 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/0.9569, allocations: 7.972 MB / 0.6561 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.957, allocations: 1.797 kB / 0.6561 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.9584, allocations: 316.4 kB / 0.6564 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.9604, allocations: 0.7192 MB / 0.6572 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.9606, allocations: 36.98 kB / 0.6572 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005296/0.9659, allocations: 4.435 MB / 0.6615 GB, free: 126.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.9659, allocations: 3.516 kB / 0.6615 GB, free: 126.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008248/0.9742, allocations: 5.722 MB / 0.6671 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.9756, allocations: 0.6391 MB / 0.6677 GB, free: 123.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/0.976, allocations: 23.72 kB / 0.6678 GB, free: 123.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.9772, allocations: 94.31 kB / 0.6678 GB, free: 123.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/0.9774, allocations: 107.5 kB / 0.6679 GB, free: 123.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.9776, allocations: 54.62 kB / 0.668 GB, free: 123.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00423/0.9818, allocations: 2.541 MB / 0.6705 GB, free: 122.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9818, allocations: 2 kB / 0.6705 GB, free: 122.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004401/0.9862, allocations: 0.9546 MB / 0.6714 GB, free: 122.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 122 * 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.007952/0.9942, allocations: 6.356 MB / 0.6776 GB, free: 119.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006896/1.001, allocations: 5.001 MB / 0.6825 GB, free: 118 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.001, allocations: 0 / 0.6825 GB, free: 118 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/1.003, allocations: 1.557 MB / 0.684 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/1.006, allocations: 408.3 kB / 0.6844 GB, free: 116.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04884/1.054, allocations: 34.6 MB / 0.7182 GB, free: 80.39 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004004/1.058, allocations: 3.245 MB / 0.7214 GB, free: 77.12 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004298/1.063, allocations: 1.895 MB / 0.7232 GB, free: 75.22 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002256/1.065, allocations: 1.882 MB / 0.7251 GB, free: 73.34 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/1.065, allocations: 0 / 0.7251 GB, free: 73.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/1.172, allocations: 75.77 MB / 0.7991 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/1.172, allocations: 204.3 kB / 0.7992 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.379/4.551, allocations: 0 / 0.7992 GB, free: 13.31 MB / 0.4981 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) Environment - environmentSimulation: 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