Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001038/0.001038, allocations: 96.58 kB / 16.95 MB, free: 6.457 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.001046/0.001046, allocations: 184.2 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004734/0.0004734, allocations: 12.62 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1028, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01576/0.1186, allocations: 16.11 MB / 344.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.1294, allocations: 4.667 MB / 349.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003361/0.1328, allocations: 71.81 kB / 349.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.1351, allocations: 0.7776 MB / 350.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007869/0.143, allocations: 2.658 MB / 352.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.1446, allocations: 383.3 kB / 353.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004464/0.1491, allocations: 2.859 MB / 356 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003251/0.1524, allocations: 1.869 MB / 357.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00143/0.1538, allocations: 0.7433 MB / 358.6 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.1558, allocations: 1.215 MB / 359.8 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003521/0.1562, allocations: 88 kB / 359.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001767/0.1579, allocations: 0.8581 MB / 360.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001068/0.159, allocations: 1.021 MB / 361.8 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006095/0.1596, allocations: 0.5156 MB / 362.3 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003567/0.1632, allocations: 3.285 MB / 365.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.129e-05/0.1632, allocations: 0 / 365.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1633, allocations: 3.938 kB / 365.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.477e-05/0.1633, allocations: 0 / 365.6 MB, free: 14.69 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005323/0.1687, allocations: 2.591 MB / 368.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1687, allocations: 8.031 kB / 368.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007328/0.1695, allocations: 466.7 kB / 368.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006138/0.1756, allocations: 1.79 MB / 370.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003789/0.1794, allocations: 1.815 MB / 372.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.1796, allocations: 135.3 kB / 372.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006629/0.1803, allocations: 263.6 kB / 372.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/0.1915, allocations: 6.649 MB / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.37e-05/0.1917, allocations: 35.73 kB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002937/0.192, allocations: 87.89 kB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2131/0.405, allocations: 1.356 MB / 380.7 MB, free: 50.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01281/0.4179, allocations: 6.016 MB / 386.8 MB, free: 49.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02956/0.4475, allocations: 25.59 MB / 412.4 MB, free: 29.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005677/0.4532, allocations: 2.669 MB / 415 MB, free: 26.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.4544, allocations: 1.032 MB / 416.1 MB, free: 25.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004871/0.4593, allocations: 3.85 MB / 419.9 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.4594, allocations: 47.05 kB / 420 MB, free: 21.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.146e-06/0.4594, allocations: 0 / 420 MB, free: 21.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02246/0.4819, allocations: 10.37 MB / 430.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009456/0.4828, allocations: 1.588 MB / 431.9 MB, free: 9.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/0.4859, allocations: 2.738 MB / 434.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002636/0.4862, allocations: 42.64 kB / 434.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009408/0.4872, allocations: 2.091 MB / 436.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004697/0.4877, allocations: 0.5061 MB / 437.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.4878, allocations: 84 kB / 437.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.488, allocations: 0.4922 MB / 437.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/0.49, allocations: 1.609 MB / 439.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004347/0.4944, allocations: 4.402 MB / 443.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004325/0.4987, allocations: 2.609 MB / 446.5 MB, free: 9.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.601e-05/0.4988, allocations: 28 kB / 446.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01589/0.5147, allocations: 7.002 MB / 453.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.5149, allocations: 48 kB / 453.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00585/0.5208, allocations: 2.539 MB / 456.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004847/0.5256, allocations: 1.501 MB / 457.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003575/0.5293, allocations: 1.01 MB / 458.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009909/0.5392, allocations: 7.197 MB / 465.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/0.5428, allocations: 317.1 kB / 466.1 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005247/0.5433, allocations: 288.9 kB / 466.4 MB, free: 4.875 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002496/0.5458, allocations: 1.417 MB / 467.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004599/0.5463, allocations: 237 kB / 468 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/0.5526, allocations: 2.841 MB / 470.9 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005529/0.5581, allocations: 2.509 MB / 473.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.143e-05/0.5582, allocations: 4 kB / 473.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.678e-05/0.5582, allocations: 7.969 kB / 473.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/0.5731, allocations: 6.88 MB / 480.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.5732, allocations: 0.6875 kB / 480.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009955/0.5742, allocations: 175.7 kB / 480.5 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004646/0.5789, allocations: 1.434 MB / 481.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002851/0.5792, allocations: 36.52 kB / 481.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.5912, allocations: 7.335 MB / 489.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001212/0.5925, allocations: 1.447 MB / 490.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00986/0.6024, allocations: 4.843 MB / 495.6 MB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009396/0.6034, allocations: 297.9 kB / 495.8 MB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006313/0.604, allocations: 31.98 kB / 495.9 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.6055, allocations: 108.8 kB / 496 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.6059, allocations: 84.33 kB / 496.1 MB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.606, allocations: 36.92 kB / 496.1 MB, free: 6.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003534/0.6095, allocations: 1.694 MB / 497.8 MB, free: 4.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6096, allocations: 0 / 497.8 MB, free: 4.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004818/0.6144, allocations: 0.7696 MB / 498.6 MB, free: 4.113 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009301/0.6237, allocations: 5.476 MB / 0.4922 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007943/0.6317, allocations: 4.311 MB / 0.4964 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.6317, allocations: 0 / 0.4964 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003165/0.6349, allocations: 1.708 MB / 0.4981 GB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.6373, allocations: 275.1 kB / 0.4984 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05106/0.6884, allocations: 23.77 MB / 0.5216 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003068/0.6915, allocations: 2.301 MB / 0.5238 GB, free: 11.56 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003799/0.6953, allocations: 1.405 MB / 0.5252 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/0.6973, allocations: 1.116 MB / 0.5263 GB, free: 9.031 MB / 430.1 MB Notification: Performance of SimCode: time 1.573e-06/0.6973, allocations: 0 / 0.5263 GB, free: 9.031 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3007/0.998, allocations: 54.56 MB / 0.5796 GB, free: 118 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.9982, allocations: 236.5 kB / 0.5798 GB, free: 117.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.368/4.366, allocations: 4 kB / 0.5798 GB, free: 117.8 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat