Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002182/0.002182, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.638/1.638, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 97.8 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.427e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 51.47 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3858/0.5018, allocations: 96.43 MB / 491.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.5021, allocations: 90.64 kB / 491.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2242/0.7263, allocations: 86.64 MB / 0.5649 GB, free: 10.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.7264, allocations: 0 / 0.5649 GB, free: 10.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001467/0.7265, allocations: 87.98 kB / 0.565 GB, free: 10.53 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01125/0.7378, allocations: 3.829 MB / 0.5687 GB, free: 6.641 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.7378, allocations: 8.031 kB / 0.5687 GB, free: 6.633 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0123/0.7502, allocations: 2.44 MB / 0.5711 GB, free: 4.184 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3107/1.061, allocations: 4.128 MB / 0.5751 GB, free: 79.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005672/1.062, allocations: 133.2 kB / 0.5752 GB, free: 79.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002601/1.064, allocations: 250.3 kB / 0.5755 GB, free: 79.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01602/1.08, allocations: 5.815 MB / 0.5812 GB, free: 79.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02083/1.101, allocations: 8.986 MB / 0.5899 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003504/1.101, allocations: 64.47 kB / 0.59 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001748/1.103, allocations: 33.38 kB / 0.59 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002229/1.105, allocations: 1.007 MB / 0.591 GB, free: 76.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04913/1.155, allocations: 44.86 MB / 0.6348 GB, free: 47.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002862/1.158, allocations: 1.877 MB / 0.6367 GB, free: 46.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/1.159, allocations: 0.763 MB / 0.6374 GB, free: 46.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007191/1.16, allocations: 0.7728 MB / 0.6382 GB, free: 45.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/1.16, allocations: 45.06 kB / 0.6382 GB, free: 45.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 8.195e-06/1.16, allocations: 0 / 0.6382 GB, free: 45.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=149): time 0.01935/1.179, allocations: 6.946 MB / 0.645 GB, free: 42.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/1.179, allocations: 146.5 kB / 0.6451 GB, free: 42.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005779/1.185, allocations: 2.974 MB / 0.648 GB, free: 41.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001948/1.185, allocations: 26.55 kB / 0.6481 GB, free: 41.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00245/1.188, allocations: 3.144 MB / 0.6511 GB, free: 38.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005764/1.188, allocations: 0.5819 MB / 0.6517 GB, free: 38.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/1.188, allocations: 3.828 kB / 0.6517 GB, free: 38.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003619/1.189, allocations: 0.5604 MB / 0.6522 GB, free: 37.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/1.191, allocations: 1.409 MB / 0.6536 GB, free: 37.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/1.195, allocations: 5.263 MB / 0.6588 GB, free: 31.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003621/1.198, allocations: 2.739 MB / 0.6614 GB, free: 30.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.104e-05/1.198, allocations: 39.22 kB / 0.6615 GB, free: 30.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.00884/1.207, allocations: 5.758 MB / 0.6671 GB, free: 28.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.919e-05/1.207, allocations: 64.06 kB / 0.6672 GB, free: 28.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001123/1.208, allocations: 147.1 kB / 0.6673 GB, free: 28.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001685/1.208, allocations: 205 kB / 0.6675 GB, free: 28.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003891/1.212, allocations: 1.443 MB / 0.6689 GB, free: 28.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001522/1.212, allocations: 275 kB / 0.6692 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004257/1.216, allocations: 262 kB / 0.6694 GB, free: 28.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004646/1.216, allocations: 372.2 kB / 0.6698 GB, free: 28.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 757 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005847/1.217, allocations: 450.8 kB / 0.6702 GB, free: 28.06 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002111/1.219, allocations: 1.501 MB / 0.6717 GB, free: 27.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/1.22, allocations: 306.1 kB / 0.672 GB, free: 27.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/1.221, allocations: 1.037 MB / 0.673 GB, free: 26.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/1.221, allocations: 17.41 kB / 0.673 GB, free: 26.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/1.221, allocations: 0 / 0.673 GB, free: 26.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/1.221, allocations: 6.234 kB / 0.673 GB, free: 26.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008178/1.229, allocations: 4.85 MB / 0.6777 GB, free: 24.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/1.229, allocations: 15.22 kB / 0.6777 GB, free: 24.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/1.231, allocations: 276.7 kB / 0.678 GB, free: 24.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-05/1.231, allocations: 26.62 kB / 0.678 GB, free: 24.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.652e-05/1.231, allocations: 27.03 kB / 0.6781 GB, free: 24.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.342e-05/1.231, allocations: 36.81 kB / 0.6781 GB, free: 24.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.071e-05/1.231, allocations: 26.47 kB / 0.6781 GB, free: 24.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003978/1.235, allocations: 4.808 MB / 0.6828 GB, free: 20.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009319/1.236, allocations: 382.9 kB / 0.6832 GB, free: 20.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002925/1.236, allocations: 28.39 kB / 0.6832 GB, free: 20.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/1.237, allocations: 65.72 kB / 0.6833 GB, free: 20.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/1.237, allocations: 135.1 kB / 0.6834 GB, free: 20.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.811e-05/1.238, allocations: 68.58 kB / 0.6835 GB, free: 20.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002977/1.241, allocations: 1.969 MB / 0.6854 GB, free: 19.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.241, allocations: 0 / 0.6854 GB, free: 19.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005756/1.246, allocations: 0.7408 MB / 0.6861 GB, free: 19.44 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005454/1.252, allocations: 9.653 MB / 0.6955 GB, free: 26.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006218/1.258, allocations: 3.264 MB / 0.6987 GB, free: 25.72 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.27e-05/1.258, allocations: 3.812 kB / 0.6987 GB, free: 25.72 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00097/1.259, allocations: 0.6774 MB / 0.6994 GB, free: 25.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/1.262, allocations: 341.2 kB / 0.6997 GB, free: 25.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02134/1.283, allocations: 8.009 MB / 0.7075 GB, free: 22.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004854/1.288, allocations: 3.164 MB / 0.7106 GB, free: 20.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005021/1.293, allocations: 1.84 MB / 0.7124 GB, free: 20.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00229/1.295, allocations: 1.776 MB / 0.7142 GB, free: 19.21 MB / 458.7 MB Notification: Performance of SimCode: time 1.773e-06/1.295, allocations: 0 / 0.7142 GB, free: 19.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.393/1.688, allocations: 60.31 MB / 0.7731 GB, free: 78.81 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/1.689, allocations: 157.3 kB / 0.7732 GB, free: 78.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.23/5.919, allocations: 3.141 kB / 0.7732 GB, free: 78.62 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat