Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",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.001556/0.001556, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.983/1.983, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003867/0.0003867, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09411, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.3494/0.4435, allocations: 29.65 MB / 404.3 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02045/0.464, allocations: 7.722 MB / 412 MB, free: 1.105 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007203/0.4713, allocations: 146 kB / 412.2 MB, free: 1.082 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006/0.4773, allocations: 1.43 MB / 413.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0189/0.4963, allocations: 4.353 MB / 417.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003268/0.4996, allocations: 0.4952 MB / 418.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0055/0.5052, allocations: 1.897 MB / 420.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006501/0.5117, allocations: 2.942 MB / 423.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002483/0.5143, allocations: 0.8715 MB / 424.1 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002807/0.5171, allocations: 1.122 MB / 425.3 MB, free: 9.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008642/0.518, allocations: 116.7 kB / 425.4 MB, free: 9.531 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.5211, allocations: 0.7724 MB / 426.2 MB, free: 8.758 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002782/0.524, allocations: 1.305 MB / 427.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.5255, allocations: 0.6987 MB / 428.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008206/0.5337, allocations: 4.449 MB / 432.6 MB, free: 2.285 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5338, allocations: 0 / 432.6 MB, free: 2.285 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.5338, allocations: 0 / 432.6 MB, free: 2.285 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002048/0.534, allocations: 0 / 432.6 MB, free: 2.285 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01081/0.5448, allocations: 3.414 MB / 436 MB, free: 14.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.5449, allocations: 8.031 kB / 436 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002045/0.547, allocations: 0.608 MB / 436.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01886/0.5659, allocations: 2.117 MB / 438.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008527/0.5745, allocations: 2.135 MB / 440.9 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002705/0.5748, allocations: 192.8 kB / 441.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001318/0.5761, allocations: 259.7 kB / 441.3 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/0.6003, allocations: 8.486 MB / 449.8 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001767/0.6006, allocations: 39.59 kB / 449.9 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009349/0.6015, allocations: 131.8 kB / 450 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005402/0.6069, allocations: 1.692 MB / 451.7 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0237/0.6307, allocations: 7.157 MB / 458.8 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06865/0.6994, allocations: 34.23 MB / 493.1 MB, free: 4.008 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01634/0.7158, allocations: 3.294 MB / 496.4 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.7272, allocations: 4.408 MB / 0.489 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.629e-05/0.7273, allocations: 47.06 kB / 0.4891 GB, free: 11.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 5.541e-06/0.7273, allocations: 0 / 0.4891 GB, free: 11.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.05196/0.7793, allocations: 11.83 MB / 0.5006 GB, free: 15.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.7795, allocations: 141.1 kB / 0.5008 GB, free: 15.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008913/0.7884, allocations: 3.851 MB / 0.5045 GB, free: 11.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003213/0.7888, allocations: 41.7 kB / 0.5046 GB, free: 11.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003069/0.7918, allocations: 2.686 MB / 0.5072 GB, free: 9.066 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009735/0.7929, allocations: 0.5248 MB / 0.5077 GB, free: 8.535 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000545/0.7934, allocations: 104 kB / 0.5078 GB, free: 8.434 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004717/0.7939, allocations: 0.5339 MB / 0.5083 GB, free: 7.891 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00506/0.799, allocations: 1.677 MB / 0.51 GB, free: 6.207 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008199/0.8073, allocations: 5.076 MB / 0.5149 GB, free: 15.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007364/0.8147, allocations: 2.86 MB / 0.5177 GB, free: 12.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/0.8149, allocations: 36 kB / 0.5177 GB, free: 12.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01886/0.8337, allocations: 6.552 MB / 0.5241 GB, free: 5.945 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.8339, allocations: 59.98 kB / 0.5242 GB, free: 5.887 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001963/0.8341, allocations: 124 kB / 0.5243 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.8353, allocations: 337.2 kB / 0.5246 GB, free: 5.434 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007437/0.8427, allocations: 1.236 MB / 0.5258 GB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00409/0.8469, allocations: 2.314 MB / 0.5281 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005357/0.8523, allocations: 291.5 kB / 0.5284 GB, free: 1.461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/0.8534, allocations: 332.1 kB / 0.5287 GB, free: 1.137 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00474/0.8581, allocations: 1.799 MB / 0.5305 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008536/0.859, allocations: 308 kB / 0.5307 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008279/0.8673, allocations: 2.367 MB / 0.5331 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.166e-05/0.8674, allocations: 16 kB / 0.5331 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/0.8674, allocations: 4 kB / 0.5331 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.148e-05/0.8675, allocations: 3.984 kB / 0.5331 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01936/0.8868, allocations: 5.931 MB / 0.5389 GB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/0.8869, allocations: 0 / 0.5389 GB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/0.8886, allocations: 179.7 kB / 0.539 GB, free: 6.441 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004061/0.8927, allocations: 0.716 MB / 0.5397 GB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002473/0.8929, allocations: 19.95 kB / 0.5398 GB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.9036, allocations: 4.576 MB / 0.5442 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.9037, allocations: 480 / 0.5442 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2876/1.191, allocations: 4.427 MB / 0.5486 GB, free: 142.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/1.193, allocations: 0.54 MB / 0.5491 GB, free: 141.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006884/1.194, allocations: 18.25 kB / 0.5491 GB, free: 141.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/1.196, allocations: 74.03 kB / 0.5492 GB, free: 141.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/1.196, allocations: 69.75 kB / 0.5492 GB, free: 141.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/1.196, allocations: 32.56 kB / 0.5493 GB, free: 141.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006254/1.203, allocations: 2.414 MB / 0.5516 GB, free: 141.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.203, allocations: 3.609 kB / 0.5516 GB, free: 141.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009994/1.213, allocations: 0.841 MB / 0.5524 GB, free: 141 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01998/1.233, allocations: 5.366 MB / 0.5577 GB, free: 138.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01302/1.246, allocations: 3.999 MB / 0.5616 GB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.246, allocations: 3.656 kB / 0.5616 GB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/1.249, allocations: 1.101 MB / 0.5627 GB, free: 136.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003993/1.253, allocations: 363.5 kB / 0.563 GB, free: 136.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05354/1.307, allocations: 99.74 MB / 0.6604 GB, free: 38.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005165/1.312, allocations: 2.866 MB / 0.6632 GB, free: 37.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003462/1.316, allocations: 1.566 MB / 0.6648 GB, free: 36.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/1.316, allocations: 0 / 0.6648 GB, free: 36.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.299/5.614, allocations: 82.91 MB / 0.7457 GB, free: 108.5 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat