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/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.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/ModelicaServices trunk/package.mo): time 0.0009204/0.0009204, allocations: 97.94 kB / 17.01 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 192.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002499, allocations: 8 kB / 306.8 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1448, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2693/0.4142, allocations: 34.98 MB / 393.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.4361, allocations: 8.051 MB / 401.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007851/0.444, allocations: 166 kB / 401.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005975/0.45, allocations: 1.787 MB / 403.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02028/0.4703, allocations: 5.484 MB / 408.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003169/0.4735, allocations: 0.6206 MB / 409.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00843/0.482, allocations: 4.797 MB / 414.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004641/0.4866, allocations: 3.354 MB / 417.5 MB, free: 432 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/0.4902, allocations: 1.257 MB / 418.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003457/0.4936, allocations: 2.006 MB / 420.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004828/0.4941, allocations: 144 kB / 420.9 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001771/0.4959, allocations: 0.7021 MB / 421.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001842/0.4978, allocations: 1.628 MB / 423.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.4988, allocations: 0.7882 MB / 424.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005503/0.5044, allocations: 4.842 MB / 428.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.5044, allocations: 0 / 428.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5044, allocations: 0 / 428.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.56e-05/0.5045, allocations: 0 / 428.9 MB, free: 5.02 MB / 334.1 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.00662/0.5111, allocations: 3.874 MB / 432.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.5112, allocations: 12.02 kB / 432.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008117/0.512, allocations: 0.6871 MB / 433.5 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006782/0.5188, allocations: 1.995 MB / 435.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005906/0.5247, allocations: 2.593 MB / 438.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.5249, allocations: 229.6 kB / 438.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007027/0.5256, allocations: 291.8 kB / 438.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01842/0.5441, allocations: 9.655 MB / 448.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/0.5442, allocations: 43.59 kB / 448.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004028/0.5446, allocations: 147.9 kB / 448.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002736/0.5474, allocations: 1.923 MB / 450.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01466/0.5621, allocations: 7.633 MB / 458 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04572/0.6078, allocations: 37.73 MB / 495.7 MB, free: 124 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006544/0.6144, allocations: 2.903 MB / 498.6 MB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.6158, allocations: 0.8658 MB / 499.5 MB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006799/0.6226, allocations: 3.85 MB / 0.4915 GB, free: 8.121 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.807e-05/0.6227, allocations: 51.16 kB / 0.4916 GB, free: 8.062 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 5.159e-06/0.6227, allocations: 0 / 0.4916 GB, free: 8.062 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02179/0.6445, allocations: 9.071 MB / 0.5004 GB, free: 14.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.999e-05/0.6446, allocations: 153.5 kB / 0.5006 GB, free: 14.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00843/0.6531, allocations: 3.909 MB / 0.5044 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003305/0.6535, allocations: 49.7 kB / 0.5044 GB, free: 10.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003801/0.6573, allocations: 3.086 MB / 0.5075 GB, free: 7.617 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001092/0.6584, allocations: 0.6097 MB / 0.5081 GB, free: 7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.6587, allocations: 116 kB / 0.5082 GB, free: 6.887 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0005075/0.6593, allocations: 0.5461 MB / 0.5087 GB, free: 6.332 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004106/0.6634, allocations: 1.55 MB / 0.5102 GB, free: 4.777 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00813/0.6715, allocations: 5.323 MB / 0.5154 GB, free: 13.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006923/0.6785, allocations: 2.808 MB / 0.5182 GB, free: 10.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/0.6787, allocations: 39.94 kB / 0.5182 GB, free: 10.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01924/0.6979, allocations: 6.581 MB / 0.5246 GB, free: 4.129 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002504/0.6982, allocations: 64 kB / 0.5247 GB, free: 4.066 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003262/0.6986, allocations: 136 kB / 0.5248 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.6989, allocations: 196 kB / 0.525 GB, free: 3.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006943/0.7059, allocations: 1.376 MB / 0.5263 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004512/0.7064, allocations: 267 kB / 0.5266 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006646/0.713, allocations: 287.6 kB / 0.5269 GB, free: 1.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/0.7146, allocations: 364 kB / 0.5272 GB, free: 1.465 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 735 * 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.2783/0.9929, allocations: 1.969 MB / 0.5291 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/0.9942, allocations: 336.8 kB / 0.5295 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.9959, allocations: 400.4 kB / 0.5298 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-05/0.996, allocations: 19.58 kB / 0.5299 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-05/0.996, allocations: 5.578 kB / 0.5299 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.508e-05/0.9961, allocations: 8.109 kB / 0.5299 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/1.016, allocations: 5.759 MB / 0.5355 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.984e-05/1.016, allocations: 18.12 kB / 0.5355 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/1.017, allocations: 282.6 kB / 0.5358 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.865e-05/1.018, allocations: 27.81 kB / 0.5358 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/1.018, allocations: 51.91 kB / 0.5359 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-05/1.018, allocations: 37.14 kB / 0.5359 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.702e-05/1.018, allocations: 29.61 kB / 0.5359 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006386/1.024, allocations: 3.225 MB / 0.5391 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/1.026, allocations: 413.7 kB / 0.5395 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/1.027, allocations: 49.64 kB / 0.5395 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/1.029, allocations: 68.25 kB / 0.5396 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/1.03, allocations: 150.1 kB / 0.5397 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/1.03, allocations: 66.34 kB / 0.5398 GB, free: 136.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007894/1.038, allocations: 2.422 MB / 0.5422 GB, free: 135.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.964e-06/1.038, allocations: 2.219 kB / 0.5422 GB, free: 135.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008307/1.046, allocations: 0.8538 MB / 0.543 GB, free: 135.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,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 (142): * Single equations (assignments): 139 * 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.009311/1.055, allocations: 3.891 MB / 0.5468 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008983/1.065, allocations: 3.606 MB / 0.5503 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.63e-05/1.065, allocations: 5.094 kB / 0.5503 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/1.066, allocations: 0.7282 MB / 0.551 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003708/1.07, allocations: 454.3 kB / 0.5515 GB, free: 131.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0553/1.125, allocations: 30.41 MB / 0.5812 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004029/1.129, allocations: 3.098 MB / 0.5842 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004059/1.133, allocations: 1.772 MB / 0.5859 GB, free: 99.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/1.135, allocations: 1.788 MB / 0.5877 GB, free: 98.04 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/1.135, allocations: 0 / 0.5877 GB, free: 98.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09503/1.23, allocations: 64.81 MB / 0.651 GB, free: 33.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/1.23, allocations: 209.1 kB / 0.6512 GB, free: 33.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.597/4.827, allocations: 0 / 0.6512 GB, free: 33.36 MB / 446.1 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