Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001163/0.001163, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002414/0.0002414, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.09876, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2013/0.3002, allocations: 40.18 MB / 398.4 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02448/0.3247, allocations: 9.872 MB / 408.2 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008126/0.3328, allocations: 197.2 kB / 408.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006105/0.3389, allocations: 1.967 MB / 410.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01967/0.3586, allocations: 5.803 MB / 416.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004072/0.3627, allocations: 0.6826 MB / 416.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006067/0.3688, allocations: 2.679 MB / 419.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008535/0.3774, allocations: 4.467 MB / 424 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002979/0.3805, allocations: 1.148 MB / 425.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00236/0.3828, allocations: 1.569 MB / 426.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005607/0.3834, allocations: 164 kB / 426.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001897/0.3853, allocations: 0.9401 MB / 427.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001596/0.3869, allocations: 1.742 MB / 429.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009542/0.3879, allocations: 0.8972 MB / 430.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.3933, allocations: 5.703 MB / 436.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3933, allocations: 0 / 436.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.868e-06/0.3933, allocations: 0 / 436.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001808/0.3935, allocations: 3.938 kB / 436.2 MB, free: 13.37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.008955/0.4025, allocations: 4.416 MB / 440.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.4025, allocations: 8.031 kB / 440.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001586/0.4041, allocations: 0.7941 MB / 441.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009373/0.4135, allocations: 2.579 MB / 444 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00584/0.4194, allocations: 2.618 MB / 446.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.4196, allocations: 274.8 kB / 446.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001275/0.4209, allocations: 431.6 kB / 447.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02485/0.4458, allocations: 12.4 MB / 459.7 MB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/0.446, allocations: 47.53 kB / 459.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005857/0.4466, allocations: 175.8 kB / 459.9 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003503/0.4501, allocations: 2.17 MB / 462.1 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.473, allocations: 10.38 MB / 472.5 MB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05719/0.5303, allocations: 44.89 MB / 0.5052 GB, free: 9.965 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/0.5501, allocations: 7.222 MB / 0.5123 GB, free: 2.539 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/0.5653, allocations: 9.392 MB / 0.5215 GB, free: 8.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.5653, allocations: 55.81 kB / 0.5215 GB, free: 8.688 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.939e-06/0.5654, allocations: 0 / 0.5215 GB, free: 8.688 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.3011/0.8665, allocations: 22.63 MB / 0.5436 GB, free: 108 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001018/0.8675, allocations: 1.612 MB / 0.5452 GB, free: 106.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007498/0.875, allocations: 4.408 MB / 0.5495 GB, free: 106 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007957/0.8759, allocations: 55.69 kB / 0.5496 GB, free: 106 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002246/0.8781, allocations: 3.402 MB / 0.5529 GB, free: 104 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.8793, allocations: 0.8056 MB / 0.5537 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.8796, allocations: 134.5 kB / 0.5538 GB, free: 103.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003531/0.88, allocations: 0.5824 MB / 0.5544 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003893/0.8839, allocations: 2.377 MB / 0.5567 GB, free: 103.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00531/0.8892, allocations: 6.475 MB / 0.563 GB, free: 97.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005417/0.8946, allocations: 3.782 MB / 0.5667 GB, free: 97.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.8948, allocations: 44 kB / 0.5667 GB, free: 97.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02341/0.9182, allocations: 10.33 MB / 0.5768 GB, free: 90.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000314/0.9186, allocations: 68 kB / 0.5769 GB, free: 90.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01173/0.9303, allocations: 4.127 MB / 0.5809 GB, free: 87.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009996/0.9404, allocations: 2.278 MB / 0.5831 GB, free: 85.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005864/0.9463, allocations: 1.614 MB / 0.5847 GB, free: 83.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007712/0.954, allocations: 6.386 MB / 0.591 GB, free: 77.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006018/0.9601, allocations: 469.7 kB / 0.5914 GB, free: 77.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/0.9613, allocations: 413 kB / 0.5918 GB, free: 77.13 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004764/0.9661, allocations: 2.213 MB / 0.594 GB, free: 75.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.9672, allocations: 376.6 kB / 0.5943 GB, free: 75.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006824/0.9741, allocations: 3.549 MB / 0.5978 GB, free: 72.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005008/0.9791, allocations: 2.99 MB / 0.6007 GB, free: 70.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.39e-05/0.9791, allocations: 4 kB / 0.6007 GB, free: 70.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.9792, allocations: 7.969 kB / 0.6007 GB, free: 70.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/0.9984, allocations: 10.79 MB / 0.6113 GB, free: 59.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-05/0.9985, allocations: 12 kB / 0.6113 GB, free: 59.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/1, allocations: 402.4 kB / 0.6116 GB, free: 58.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00265/1.003, allocations: 0.9871 MB / 0.6126 GB, free: 57.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002189/1.003, allocations: 63.97 kB / 0.6127 GB, free: 57.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003951/1.007, allocations: 4.684 MB / 0.6172 GB, free: 52.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007055/1.008, allocations: 1.481 MB / 0.6187 GB, free: 51.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008615/1.016, allocations: 7.928 MB / 0.6264 GB, free: 42.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.018, allocations: 460 kB / 0.6269 GB, free: 42.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009585/1.019, allocations: 52.86 kB / 0.6269 GB, free: 42.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002175/1.021, allocations: 183.8 kB / 0.6271 GB, free: 42.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/1.021, allocations: 167.3 kB / 0.6273 GB, free: 41.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/1.021, allocations: 87.92 kB / 0.6273 GB, free: 41.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003457/1.025, allocations: 2.746 MB / 0.63 GB, free: 39.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.025, allocations: 0 / 0.63 GB, free: 39.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00632/1.031, allocations: 1.185 MB / 0.6312 GB, free: 37.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009353/1.04, allocations: 11.78 MB / 0.6427 GB, free: 25.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009622/1.05, allocations: 6.164 MB / 0.6487 GB, free: 19.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/1.05, allocations: 4 kB / 0.6487 GB, free: 19.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003958/1.054, allocations: 2.303 MB / 0.651 GB, free: 17.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003832/1.058, allocations: 466.1 kB / 0.6514 GB, free: 17.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.291/1.349, allocations: 140.4 MB / 0.7885 GB, free: 117.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003305/1.352, allocations: 3.552 MB / 0.792 GB, free: 116.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00475/1.357, allocations: 2.045 MB / 0.794 GB, free: 116.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002548/1.36, allocations: 2.102 MB / 0.796 GB, free: 114.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.923e-06/1.36, allocations: 0 / 0.796 GB, free: 114.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/1.468, allocations: 85.36 MB / 0.8794 GB, free: 34.14 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/1.469, allocations: 237.6 kB / 0.8796 GB, free: 33.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.133/5.602, allocations: 0 / 0.8796 GB, free: 33.9 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat