Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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_3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",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.0007808/0.0007807, allocations: 97.59 kB / 17 MB, free: 6.121 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.0008654/0.0008656, allocations: 182.8 kB / 17.89 MB, free: 5.699 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.409/1.409, allocations: 223.2 MB / 241.9 MB, free: 312 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.1929/0.1929, allocations: 44.22 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.000334, allocations: 11 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1381, allocations: 61.93 MB / 471.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.3293/0.4675, allocations: 59.51 MB / 0.5187 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03238/0.4999, allocations: 12.34 MB / 0.5308 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01282/0.5127, allocations: 276.7 kB / 0.531 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01036/0.5231, allocations: 3.111 MB / 0.5341 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02396/0.5471, allocations: 9.034 MB / 0.5429 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004167/0.5513, allocations: 0.6165 MB / 0.5435 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006523/0.5578, allocations: 4.988 MB / 0.5484 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009588/0.5675, allocations: 5.958 MB / 0.5542 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004226/0.5717, allocations: 1.408 MB / 0.5556 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004352/0.5761, allocations: 2.187 MB / 0.5577 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001249/0.5774, allocations: 164 kB / 0.5579 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002754/0.5801, allocations: 0.8114 MB / 0.5586 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002748/0.5829, allocations: 1.896 MB / 0.5605 GB, free: 8.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001975/0.5849, allocations: 0.9595 MB / 0.5614 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007735/0.5926, allocations: 6.354 MB / 0.5676 GB, free: 1.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5927, allocations: 4 kB / 0.5676 GB, free: 1.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5927, allocations: 0 / 0.5676 GB, free: 1.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003507/0.593, allocations: 0 / 0.5676 GB, free: 1.402 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.01805/0.6111, allocations: 5.215 MB / 0.5727 GB, free: 12.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.6112, allocations: 8.031 kB / 0.5727 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003227/0.6144, allocations: 0.8427 MB / 0.5736 GB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00709/0.6215, allocations: 2.012 MB / 0.5755 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007196/0.6288, allocations: 2.922 MB / 0.5784 GB, free: 6.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004115/0.6292, allocations: 303.7 kB / 0.5787 GB, free: 6.109 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002085/0.6313, allocations: 391.8 kB / 0.5791 GB, free: 5.766 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/0.6566, allocations: 12.37 MB / 0.5911 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.6568, allocations: 51.53 kB / 0.5912 GB, free: 8.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005106/0.6573, allocations: 182.7 kB / 0.5914 GB, free: 8.609 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003871/0.6612, allocations: 2.255 MB / 0.5936 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02314/0.6843, allocations: 11.34 MB / 0.6046 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06424/0.7486, allocations: 46.47 MB / 0.65 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01672/0.7654, allocations: 5.487 MB / 0.6554 GB, free: 6.004 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004675/0.7701, allocations: 3.439 MB / 0.6587 GB, free: 2.555 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001027/0.7712, allocations: 0.6944 MB / 0.6594 GB, free: 1.766 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.737e-05/0.7712, allocations: 59.8 kB / 0.6595 GB, free: 1.699 MB / 494.1 MB Notification: Performance of pre-optimization done (n=203): time 7.795e-06/0.7713, allocations: 112 / 0.6595 GB, free: 1.699 MB / 494.1 MB Notification: Performance of matching and sorting (n=234): time 0.08054/0.8518, allocations: 27.37 MB / 0.6862 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.93e-05/0.852, allocations: 154.5 kB / 0.6863 GB, free: 6.023 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00881/0.8608, allocations: 4.392 MB / 0.6906 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000775/0.8616, allocations: 57.7 kB / 0.6907 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003177/0.8648, allocations: 3.423 MB / 0.694 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001692/0.8665, allocations: 0.8839 MB / 0.6949 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009485/0.8675, allocations: 128 kB / 0.695 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0006388/0.8681, allocations: 0.5829 MB / 0.6956 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005838/0.874, allocations: 3.257 MB / 0.6988 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008788/0.8828, allocations: 7.081 MB / 0.7057 GB, free: 296 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2862/1.169, allocations: 4.675 MB / 0.7102 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/1.169, allocations: 38 kB / 0.7103 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02644/1.196, allocations: 11.26 MB / 0.7213 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.196, allocations: 67.94 kB / 0.7213 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002132/1.196, allocations: 133.9 kB / 0.7215 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/1.199, allocations: 1.143 MB / 0.7226 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006581/1.205, allocations: 1.691 MB / 0.7242 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007201/1.213, allocations: 6.006 MB / 0.7301 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006152/1.219, allocations: 401.6 kB / 0.7305 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001535/1.22, allocations: 446.5 kB / 0.7309 GB, free: 178.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 613 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (815): * Single equations (assignments): 811 * 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.005093/1.226, allocations: 2.342 MB / 0.7332 GB, free: 177 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/1.227, allocations: 396.2 kB / 0.7336 GB, free: 177 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009426/1.236, allocations: 6.194 MB / 0.7396 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.857e-05/1.236, allocations: 24.94 kB / 0.7396 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/1.236, allocations: 4 kB / 0.7397 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-05/1.236, allocations: 11.06 kB / 0.7397 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01922/1.255, allocations: 13.08 MB / 0.7524 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/1.255, allocations: 4 kB / 0.7524 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002714/1.258, allocations: 0.5463 MB / 0.753 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/1.261, allocations: 0.9566 MB / 0.7539 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/1.261, allocations: 84.67 kB / 0.754 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006215/1.267, allocations: 5.733 MB / 0.7596 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.267, allocations: 7.281 kB / 0.7596 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/1.28, allocations: 10.47 MB / 0.7698 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002508/1.283, allocations: 0.9056 MB / 0.7707 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006324/1.283, allocations: 41.33 kB / 0.7707 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/1.285, allocations: 167.8 kB / 0.7709 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004538/1.286, allocations: 185.6 kB / 0.7711 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.286, allocations: 108.5 kB / 0.7712 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004292/1.29, allocations: 2.754 MB / 0.7739 GB, free: 140 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.8e-07/1.29, allocations: 0 / 0.7739 GB, free: 140 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006767/1.297, allocations: 1.206 MB / 0.7751 GB, free: 138.8 MB / 0.5294 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 202 * 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.01323/1.31, allocations: 11.13 MB / 0.7859 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01149/1.322, allocations: 7.697 MB / 0.7934 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.322, allocations: 0 / 0.7934 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0042/1.326, allocations: 3.021 MB / 0.7964 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004767/1.331, allocations: 493 kB / 0.7969 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08316/1.414, allocations: 45.83 MB / 0.8416 GB, free: 66.48 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006347/1.421, allocations: 3.67 MB / 0.8452 GB, free: 62.77 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007056/1.428, allocations: 2.264 MB / 0.8474 GB, free: 60.51 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004837/1.433, allocations: 2.358 MB / 0.8497 GB, free: 58.15 MB / 0.5294 GB Notification: Performance of SimCode: time 1.303e-06/1.433, allocations: 0 / 0.8497 GB, free: 58.15 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4022/1.835, allocations: 99.25 MB / 0.9466 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/1.835, allocations: 204.6 kB / 0.9468 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.288/6.123, allocations: 8 kB / 0.9468 GB, free: 157.5 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat