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.001424/0.001424, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009961/0.000996, allocations: 92.44 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.464e-05, allocations: 4 kB / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3904/0.5089, allocations: 97.09 MB / 499.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.5092, allocations: 92.31 kB / 499.3 MB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2224/0.7316, allocations: 88.3 MB / 0.5738 GB, free: 1.215 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.7317, allocations: 4 kB / 0.5738 GB, free: 1.211 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001777/0.7319, allocations: 76 kB / 0.5739 GB, free: 1.137 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.3177/1.05, allocations: 3.827 MB / 0.5777 GB, free: 80.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.05, allocations: 17.25 kB / 0.5777 GB, free: 80.51 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002811/1.053, allocations: 0.7375 MB / 0.5784 GB, free: 80.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/1.064, allocations: 2.438 MB / 0.5808 GB, free: 80.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/1.076, allocations: 4.138 MB / 0.5848 GB, free: 79.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003897/1.077, allocations: 312.3 kB / 0.5851 GB, free: 79.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00221/1.079, allocations: 412.7 kB / 0.5855 GB, free: 79.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02044/1.099, allocations: 9.933 MB / 0.5952 GB, free: 77.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002028/1.099, allocations: 69.05 kB / 0.5953 GB, free: 77.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007348/1.1, allocations: 198.3 kB / 0.5955 GB, free: 77.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001603/1.102, allocations: 1.013 MB / 0.5964 GB, free: 77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0177/1.12, allocations: 7.642 MB / 0.6039 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0535/1.173, allocations: 45.66 MB / 0.6485 GB, free: 45.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006076/1.179, allocations: 2.839 MB / 0.6513 GB, free: 44 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009704/1.18, allocations: 0.8461 MB / 0.6521 GB, free: 43.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005418/1.186, allocations: 3.807 MB / 0.6558 GB, free: 41.33 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/1.186, allocations: 46.88 kB / 0.6559 GB, free: 41.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 4.809e-06/1.186, allocations: 7.094 kB / 0.6559 GB, free: 41.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.01914/1.205, allocations: 8.338 MB / 0.664 GB, free: 37.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/1.205, allocations: 143.5 kB / 0.6641 GB, free: 37.24 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005111/1.21, allocations: 3.423 MB / 0.6675 GB, free: 35.99 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002695/1.21, allocations: 45.61 kB / 0.6675 GB, free: 35.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001858/1.212, allocations: 3.092 MB / 0.6705 GB, free: 33.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006657/1.213, allocations: 0.6104 MB / 0.6711 GB, free: 33.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/1.213, allocations: 118.7 kB / 0.6713 GB, free: 33.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002686/1.214, allocations: 0.5533 MB / 0.6718 GB, free: 32.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/1.216, allocations: 1.486 MB / 0.6732 GB, free: 32.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003816/1.219, allocations: 5.22 MB / 0.6783 GB, free: 26.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003821/1.223, allocations: 2.785 MB / 0.6811 GB, free: 25.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/1.223, allocations: 36.59 kB / 0.6811 GB, free: 25.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01205/1.235, allocations: 6.445 MB / 0.6874 GB, free: 23.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.801e-05/1.236, allocations: 63.62 kB / 0.6875 GB, free: 23.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001757/1.236, allocations: 131.8 kB / 0.6876 GB, free: 23.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/1.236, allocations: 199.7 kB / 0.6878 GB, free: 23.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004386/1.24, allocations: 1.393 MB / 0.6891 GB, free: 22.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001868/1.241, allocations: 261.4 kB / 0.6894 GB, free: 22.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005324/1.246, allocations: 369.7 kB / 0.6897 GB, free: 22.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009208/1.247, allocations: 366.8 kB / 0.6901 GB, free: 22.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * 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 (736): * Single equations (assignments): 733 * 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.0009826/1.248, allocations: 0.5662 MB / 0.6906 GB, free: 22.19 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007765/1.249, allocations: 340.3 kB / 0.691 GB, free: 22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/1.251, allocations: 1.215 MB / 0.6921 GB, free: 21.53 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.704e-05/1.251, allocations: 15.59 kB / 0.6922 GB, free: 21.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/1.251, allocations: 3.562 kB / 0.6922 GB, free: 21.53 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/1.251, allocations: 7.406 kB / 0.6922 GB, free: 21.53 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008991/1.26, allocations: 5.767 MB / 0.6978 GB, free: 18.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.339e-05/1.26, allocations: 18.41 kB / 0.6978 GB, free: 18.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009616/1.261, allocations: 286.2 kB / 0.6981 GB, free: 18.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.662e-05/1.261, allocations: 29.59 kB / 0.6981 GB, free: 18.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.591e-05/1.261, allocations: 49.47 kB / 0.6982 GB, free: 18.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.38e-05/1.261, allocations: 37.3 kB / 0.6982 GB, free: 18.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.587e-05/1.261, allocations: 33.27 kB / 0.6982 GB, free: 18.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00382/1.265, allocations: 5.327 MB / 0.7034 GB, free: 14.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/1.266, allocations: 416.9 kB / 0.7038 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003862/1.266, allocations: 57.5 kB / 0.7039 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/1.268, allocations: 89.75 kB / 0.704 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/1.268, allocations: 147.5 kB / 0.7041 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.032e-05/1.268, allocations: 69.19 kB / 0.7042 GB, free: 13.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003641/1.272, allocations: 2.363 MB / 0.7065 GB, free: 12 MB / 442.7 MB Notification: Performance of sort global known variables: time 4e-07/1.272, allocations: 4 kB / 0.7065 GB, free: 11.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005322/1.277, allocations: 0.8803 MB / 0.7074 GB, free: 11.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (144): * Single equations (assignments): 141 * 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.004896/1.282, allocations: 10.56 MB / 0.7177 GB, free: 232 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007424/1.289, allocations: 3.622 MB / 0.7212 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/1.289, allocations: 256 / 0.7212 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/1.291, allocations: 0.726 MB / 0.7219 GB, free: 12.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002884/1.293, allocations: 418.2 kB / 0.7223 GB, free: 12.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02144/1.315, allocations: 8.316 MB / 0.7304 GB, free: 4.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003425/1.318, allocations: 3.179 MB / 0.7335 GB, free: 2.238 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004756/1.323, allocations: 1.767 MB / 0.7353 GB, free: 1.137 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003629/1.327, allocations: 1.892 MB / 0.7371 GB, free: 15.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/1.327, allocations: 1.875 kB / 0.7371 GB, free: 15.79 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4173/1.744, allocations: 65.5 MB / 0.8011 GB, free: 98.24 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/1.744, allocations: 169.6 kB / 0.8012 GB, free: 98.02 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.676/6.42, allocations: 0 / 0.8012 GB, free: 98.02 MB / 474.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