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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008599/0.00086, allocations: 92.55 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007293/0.0007293, allocations: 177.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.3 MB / 241.9 MB, free: 300 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1994/0.1994, allocations: 44.23 MB / 337.2 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.0003417, allocations: 8.688 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1218, allocations: 61.92 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.04246/0.1643, allocations: 44.98 MB / 0.5045 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3175/0.4819, allocations: 9.72 MB / 0.514 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01157/0.4936, allocations: 214.3 kB / 0.5142 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009663/0.5033, allocations: 2.318 MB / 0.5165 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02463/0.5279, allocations: 6.912 MB / 0.5232 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003651/0.5316, allocations: 0.5116 MB / 0.5237 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.5417, allocations: 4.172 MB / 0.5278 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.5525, allocations: 4.449 MB / 0.5322 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004084/0.5567, allocations: 1.168 MB / 0.5333 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004993/0.5617, allocations: 1.823 MB / 0.5351 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.563, allocations: 130.6 kB / 0.5352 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003356/0.5664, allocations: 0.7833 MB / 0.536 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00269/0.5691, allocations: 1.583 MB / 0.5375 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.5714, allocations: 0.7935 MB / 0.5383 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008624/0.58, allocations: 5.398 MB / 0.5436 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.5801, allocations: 2.969 kB / 0.5436 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.5801, allocations: 1.594 kB / 0.5436 GB, free: 0 / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003182/0.5804, allocations: 4.047 kB / 0.5436 GB, free: 15.99 MB / 398.1 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.01646/0.5969, allocations: 4.284 MB / 0.5478 GB, free: 12.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/0.597, allocations: 12.03 kB / 0.5478 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002711/0.5997, allocations: 0.6904 MB / 0.5484 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007549/0.6073, allocations: 1.916 MB / 0.5503 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009155/0.6165, allocations: 2.521 MB / 0.5528 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000429/0.6169, allocations: 223.2 kB / 0.553 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002187/0.6191, allocations: 308.3 kB / 0.5533 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/0.6515, allocations: 10.22 MB / 0.5633 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003059/0.6519, allocations: 41.78 kB / 0.5633 GB, free: 64 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001652/0.6536, allocations: 146.2 kB / 0.5634 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004913/0.6585, allocations: 1.87 MB / 0.5653 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.024/0.6825, allocations: 9.165 MB / 0.5742 GB, free: 5.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05727/0.7399, allocations: 37.58 MB / 0.6109 GB, free: 15.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01309/0.753, allocations: 3.714 MB / 0.6145 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002828/0.7559, allocations: 1.709 MB / 0.6162 GB, free: 9.688 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/0.7569, allocations: 0.6748 MB / 0.6169 GB, free: 8.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/0.757, allocations: 47.12 kB / 0.6169 GB, free: 8.855 MB / 462.1 MB Notification: Performance of pre-optimization done (n=130): time 7.003e-06/0.757, allocations: 0 / 0.6169 GB, free: 8.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=136): time 0.04289/0.7999, allocations: 12.95 MB / 0.6296 GB, free: 11.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.836e-05/0.8001, allocations: 149.2 kB / 0.6297 GB, free: 11.62 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00809/0.8082, allocations: 3.961 MB / 0.6336 GB, free: 7.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004735/0.8087, allocations: 41.7 kB / 0.6336 GB, free: 7.633 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003203/0.8119, allocations: 3.006 MB / 0.6365 GB, free: 4.645 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.813, allocations: 0.5487 MB / 0.6371 GB, free: 4.102 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005633/0.8136, allocations: 112 kB / 0.6372 GB, free: 3.992 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0005408/0.8141, allocations: 0.5374 MB / 0.6377 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003676/0.8178, allocations: 1.916 MB / 0.6396 GB, free: 1.527 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006577/0.8244, allocations: 5.496 MB / 0.645 GB, free: 10.22 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005117/0.8296, allocations: 3.174 MB / 0.6481 GB, free: 7.047 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/0.8297, allocations: 36 kB / 0.6481 GB, free: 7.012 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01534/0.845, allocations: 7.883 MB / 0.6558 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.8452, allocations: 56 kB / 0.6558 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002032/0.8454, allocations: 129.7 kB / 0.656 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002393/0.8478, allocations: 0.9187 MB / 0.6569 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003942/0.8518, allocations: 1.29 MB / 0.6581 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007008/0.8588, allocations: 4.859 MB / 0.6629 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004661/0.8635, allocations: 307.7 kB / 0.6632 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006599/0.8642, allocations: 358.6 kB / 0.6635 GB, free: 7.098 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (680): * Single equations (assignments): 676 * 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.003849/0.868, allocations: 1.99 MB / 0.6654 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007976/0.8688, allocations: 339.6 kB / 0.6658 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005567/0.8744, allocations: 2.786 MB / 0.6685 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.041e-05/0.8744, allocations: 16 kB / 0.6685 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.8745, allocations: 4 kB / 0.6685 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/0.8745, allocations: 11.97 kB / 0.6685 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/0.8877, allocations: 7.271 MB / 0.6756 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.8878, allocations: 4 kB / 0.6756 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.8889, allocations: 255.7 kB / 0.6759 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.8909, allocations: 0.7147 MB / 0.6766 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.891, allocations: 35.97 kB / 0.6766 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005702/0.8967, allocations: 4.421 MB / 0.6809 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.8967, allocations: 0 / 0.6809 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007532/0.9043, allocations: 5.134 MB / 0.6859 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000972/0.9053, allocations: 398.4 kB / 0.6863 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006802/0.906, allocations: 19.95 kB / 0.6863 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/0.9074, allocations: 94.47 kB / 0.6864 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.9077, allocations: 84.47 kB / 0.6865 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.9078, allocations: 47.97 kB / 0.6865 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004262/0.9121, allocations: 2.474 MB / 0.689 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9121, allocations: 0 / 0.689 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005586/0.9177, allocations: 0.8947 MB / 0.6898 GB, free: 11.88 MB / 0.5294 GB 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 (104): * Single equations (assignments): 100 * 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.008487/0.9262, allocations: 5.78 MB / 0.6955 GB, free: 6.059 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007575/0.9338, allocations: 4.588 MB / 0.7 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.9338, allocations: 0 / 0.7 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.9357, allocations: 1.363 MB / 0.7013 GB, free: 112 kB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2259/1.162, allocations: 403.4 kB / 0.7017 GB, free: 192.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06692/1.229, allocations: 32.56 MB / 0.7335 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/1.232, allocations: 3.106 MB / 0.7365 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004196/1.236, allocations: 1.791 MB / 0.7383 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/1.238, allocations: 1.783 MB / 0.74 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.238, allocations: 0 / 0.74 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/1.342, allocations: 72.25 MB / 0.8106 GB, free: 99.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/1.343, allocations: 204.6 kB / 0.8108 GB, free: 99.13 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.983/5.326, allocations: 0 / 0.8108 GB, free: 99.13 MB / 0.5294 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