Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 202.7 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008619/0.000862, allocations: 99.53 kB / 297.2 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.0002208, allocations: 7.984 kB / 358 MB, free: 9.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2331, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1181/0.3512, allocations: 94.14 MB / 0.4918 GB, free: 12.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.3516, allocations: 91.95 kB / 0.4919 GB, free: 12.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3339/0.6855, allocations: 59.59 MB / 0.5501 GB, free: 60.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6855, allocations: 0 / 0.5501 GB, free: 60.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001543/0.6857, allocations: 47.94 kB / 0.5502 GB, free: 60.67 MB / 378.7 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.01439/0.7001, allocations: 3.179 MB / 0.5533 GB, free: 57.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.7002, allocations: 12.03 kB / 0.5533 GB, free: 57.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002296/0.7025, allocations: 0.4987 MB / 0.5538 GB, free: 56.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008446/0.7109, allocations: 2.11 MB / 0.5558 GB, free: 54.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007905/0.7189, allocations: 2.99 MB / 0.5588 GB, free: 51.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.719, allocations: 192.9 kB / 0.5589 GB, free: 51.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009188/0.72, allocations: 247.9 kB / 0.5592 GB, free: 51.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.7301, allocations: 7.031 MB / 0.566 GB, free: 43.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-05/0.7302, allocations: 47.53 kB / 0.5661 GB, free: 43.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003327/0.7306, allocations: 127.9 kB / 0.5662 GB, free: 43.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008216/0.7314, allocations: 0.7189 MB / 0.5669 GB, free: 42.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008891/0.7403, allocations: 6.098 MB / 0.5729 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02502/0.7654, allocations: 32.7 MB / 0.6048 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005776/0.7712, allocations: 2.667 MB / 0.6074 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006462/0.7777, allocations: 3.896 MB / 0.6112 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.7777, allocations: 47.08 kB / 0.6113 GB, free: 11.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=112): time 3.577e-06/0.7778, allocations: 3.938 kB / 0.6113 GB, free: 11.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.02656/0.8043, allocations: 10.53 MB / 0.6215 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001574/0.8059, allocations: 1.592 MB / 0.6231 GB, free: 15.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004718/0.8107, allocations: 2.464 MB / 0.6255 GB, free: 12.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003004/0.811, allocations: 41.7 kB / 0.6255 GB, free: 12.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001799/0.8128, allocations: 2.079 MB / 0.6276 GB, free: 10.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007934/0.8136, allocations: 0.5092 MB / 0.6281 GB, free: 10.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.8138, allocations: 92 kB / 0.6282 GB, free: 9.973 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003816/0.8142, allocations: 500 kB / 0.6286 GB, free: 9.477 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.8169, allocations: 1.629 MB / 0.6302 GB, free: 7.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00428/0.8212, allocations: 4.395 MB / 0.6345 GB, free: 2.043 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003431/0.8246, allocations: 2.636 MB / 0.6371 GB, free: 15.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.612e-05/0.8247, allocations: 28 kB / 0.6371 GB, free: 15.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01292/0.8376, allocations: 7.026 MB / 0.644 GB, free: 8.336 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-05/0.8377, allocations: 51.95 kB / 0.644 GB, free: 8.285 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005687/0.8434, allocations: 2.533 MB / 0.6465 GB, free: 5.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005003/0.8484, allocations: 1.493 MB / 0.648 GB, free: 4.238 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00298/0.8514, allocations: 1.025 MB / 0.649 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00972/0.8611, allocations: 7.429 MB / 0.6562 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004024/0.8652, allocations: 367.5 kB / 0.6566 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006059/0.8658, allocations: 284 kB / 0.6568 GB, free: 10.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * 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 (541): * Single equations (assignments): 533 * 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.00245/0.8683, allocations: 1.419 MB / 0.6582 GB, free: 9.438 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004458/0.8687, allocations: 233 kB / 0.6584 GB, free: 9.207 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006587/0.8753, allocations: 2.839 MB / 0.6612 GB, free: 6.344 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005758/0.8811, allocations: 2.505 MB / 0.6637 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/0.8811, allocations: 7.984 kB / 0.6637 GB, free: 3.812 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.8812, allocations: 7.984 kB / 0.6637 GB, free: 3.805 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2817/1.163, allocations: 6.862 MB / 0.6704 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/1.163, allocations: 6.375 kB / 0.6704 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007914/1.164, allocations: 174.4 kB / 0.6705 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004227/1.168, allocations: 1.425 MB / 0.6719 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/1.168, allocations: 33.38 kB / 0.672 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008394/1.177, allocations: 7.554 MB / 0.6793 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007551/1.177, allocations: 1.454 MB / 0.6808 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007977/1.185, allocations: 4.956 MB / 0.6856 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008476/1.186, allocations: 299.6 kB / 0.6859 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/1.186, allocations: 31.66 kB / 0.6859 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/1.188, allocations: 123.6 kB / 0.686 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/1.188, allocations: 77.47 kB / 0.6861 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.416e-05/1.188, allocations: 43.31 kB / 0.6862 GB, free: 114.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002564/1.191, allocations: 1.711 MB / 0.6878 GB, free: 113.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.191, allocations: 0 / 0.6878 GB, free: 113.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003586/1.194, allocations: 0.7762 MB / 0.6886 GB, free: 113.9 MB / 442.7 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.007795/1.202, allocations: 5.983 MB / 0.6944 GB, free: 112.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006068/1.208, allocations: 4.312 MB / 0.6986 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/1.208, allocations: 0 / 0.6986 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/1.211, allocations: 1.726 MB / 0.7003 GB, free: 110 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/1.212, allocations: 236.7 kB / 0.7006 GB, free: 109.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04689/1.259, allocations: 91.37 MB / 0.7898 GB, free: 24.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001939/1.261, allocations: 2.349 MB / 0.7921 GB, free: 22.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003231/1.264, allocations: 1.406 MB / 0.7934 GB, free: 21.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/1.265, allocations: 1.113 MB / 0.7945 GB, free: 20.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/1.265, allocations: 0 / 0.7945 GB, free: 20.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3071/1.572, allocations: 54.84 MB / 0.8481 GB, free: 133.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/1.573, allocations: 231.2 kB / 0.8483 GB, free: 133 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.306/4.879, allocations: 0 / 0.8483 GB, free: 133 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat