Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.002226/0.002232, allocations: 187.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 2.349/2.349, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001147/0.001147, allocations: 106.8 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005159/0.0005161, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1014, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.311/0.4124, allocations: 29.72 MB / 404.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02219/0.4347, allocations: 7.718 MB / 412.1 MB, free: 1.008 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008226/0.4429, allocations: 145.3 kB / 412.2 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00646/0.4495, allocations: 1.431 MB / 413.7 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01916/0.4687, allocations: 4.336 MB / 418 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003496/0.4722, allocations: 0.5583 MB / 418.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005508/0.4778, allocations: 1.941 MB / 420.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007397/0.4852, allocations: 3.353 MB / 423.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.4879, allocations: 0.8686 MB / 424.7 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00311/0.491, allocations: 1.198 MB / 425.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008856/0.492, allocations: 124 kB / 426 MB, free: 8.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003219/0.4952, allocations: 0.8465 MB / 426.9 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002637/0.4979, allocations: 1.301 MB / 428.2 MB, free: 6.688 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.4995, allocations: 0.7103 MB / 428.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008357/0.5078, allocations: 4.499 MB / 433.4 MB, free: 1.461 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.5079, allocations: 0 / 433.4 MB, free: 1.461 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.5079, allocations: 4 kB / 433.4 MB, free: 1.457 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002157/0.5081, allocations: 0 / 433.4 MB, free: 1.457 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01105/0.5192, allocations: 3.49 MB / 436.9 MB, free: 13.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.5193, allocations: 8.031 kB / 436.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002012/0.5213, allocations: 0.6411 MB / 437.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/0.5354, allocations: 2.237 MB / 439.8 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006483/0.5419, allocations: 2.065 MB / 441.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.5423, allocations: 209.2 kB / 442 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001277/0.5435, allocations: 259.9 kB / 442.3 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03139/0.575, allocations: 10.08 MB / 452.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001591/0.5752, allocations: 39.59 kB / 452.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007231/0.5759, allocations: 139.8 kB / 452.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00576/0.5817, allocations: 1.852 MB / 454.4 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03172/0.6135, allocations: 8.645 MB / 463 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0723/0.6858, allocations: 37.37 MB / 0.4887 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03262/0.7185, allocations: 6.444 MB / 0.495 GB, free: 5.914 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02192/0.7404, allocations: 8.574 MB / 0.5034 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.996e-05/0.7405, allocations: 51.5 kB / 0.5034 GB, free: 13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 5.17e-06/0.7406, allocations: 0 / 0.5034 GB, free: 13 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.1311/0.8716, allocations: 23.75 MB / 0.5266 GB, free: 5.055 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.8718, allocations: 153.5 kB / 0.5267 GB, free: 4.875 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00844/0.8802, allocations: 3.584 MB / 0.5302 GB, free: 1.289 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000433/0.8807, allocations: 49.64 kB / 0.5303 GB, free: 1.234 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2723/1.153, allocations: 2.69 MB / 0.5329 GB, free: 133.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001155/1.154, allocations: 0.6466 MB / 0.5336 GB, free: 132.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006296/1.155, allocations: 110.4 kB / 0.5337 GB, free: 132.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004674/1.155, allocations: 0.5465 MB / 0.5342 GB, free: 132.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005832/1.161, allocations: 2.02 MB / 0.5362 GB, free: 132.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008244/1.169, allocations: 5.424 MB / 0.5415 GB, free: 126.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008501/1.178, allocations: 3.202 MB / 0.5446 GB, free: 125.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002008/1.178, allocations: 34.78 kB / 0.5446 GB, free: 125.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.02712/1.205, allocations: 8.224 MB / 0.5527 GB, free: 122.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/1.206, allocations: 56.25 kB / 0.5527 GB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002516/1.206, allocations: 122 kB / 0.5528 GB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007254/1.213, allocations: 1.308 MB / 0.5541 GB, free: 122.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007518/1.221, allocations: 1.278 MB / 0.5553 GB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/1.234, allocations: 6.268 MB / 0.5615 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006171/1.241, allocations: 321.5 kB / 0.5618 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/1.242, allocations: 342 kB / 0.5621 GB, free: 119.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004365/1.246, allocations: 1.814 MB / 0.5639 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007012/1.247, allocations: 310 kB / 0.5642 GB, free: 117.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/1.259, allocations: 3.585 MB / 0.5677 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.364e-05/1.259, allocations: 17.09 kB / 0.5677 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/1.259, allocations: 4.875 kB / 0.5677 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.935e-05/1.259, allocations: 11.97 kB / 0.5677 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02293/1.282, allocations: 8.004 MB / 0.5755 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.051e-05/1.282, allocations: 4 kB / 0.5755 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/1.285, allocations: 259.6 kB / 0.5758 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00664/1.291, allocations: 1.122 MB / 0.5769 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003872/1.292, allocations: 31.06 kB / 0.5769 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/1.305, allocations: 5.886 MB / 0.5826 GB, free: 99.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.305, allocations: 4.031 kB / 0.5826 GB, free: 99.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01629/1.321, allocations: 6.127 MB / 0.5886 GB, free: 92.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/1.323, allocations: 0.6101 MB / 0.5892 GB, free: 92.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008721/1.324, allocations: 21.02 kB / 0.5892 GB, free: 92.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002968/1.327, allocations: 115.8 kB / 0.5894 GB, free: 92.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006696/1.328, allocations: 84.88 kB / 0.5894 GB, free: 91.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/1.328, allocations: 45.64 kB / 0.5895 GB, free: 91.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004958/1.333, allocations: 2.232 MB / 0.5917 GB, free: 89.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.22e-07/1.333, allocations: 4 kB / 0.5917 GB, free: 89.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006445/1.339, allocations: 0.9444 MB / 0.5926 GB, free: 88.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01758/1.357, allocations: 6.961 MB / 0.5994 GB, free: 81.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01197/1.369, allocations: 4.932 MB / 0.6042 GB, free: 76.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/1.369, allocations: 8 kB / 0.6042 GB, free: 76.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004137/1.373, allocations: 1.622 MB / 0.6058 GB, free: 75.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/1.376, allocations: 333.4 kB / 0.6061 GB, free: 74.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3787/1.755, allocations: 114.4 MB / 0.7178 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005272/1.76, allocations: 2.936 MB / 0.7207 GB, free: 122.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003661/1.764, allocations: 1.633 MB / 0.7222 GB, free: 121.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/1.764, allocations: 0.9062 kB / 0.7222 GB, free: 121.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.972/5.735, allocations: 86.05 MB / 0.8063 GB, free: 40.61 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat