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.0008132/0.0008133, allocations: 102.4 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000927/0.000927, allocations: 205.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003526, allocations: 8 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1326, allocations: 51.49 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2244/0.3571, allocations: 33.05 MB / 391.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.3774, allocations: 8.374 MB / 399.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008914/0.3864, allocations: 165.8 kB / 399.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007044/0.3935, allocations: 1.603 MB / 401.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02172/0.4152, allocations: 4.856 MB / 406.2 MB, free: 9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003385/0.4186, allocations: 0.6228 MB / 406.9 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005486/0.4241, allocations: 2.458 MB / 409.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005528/0.4297, allocations: 3.344 MB / 412.7 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.4321, allocations: 1.036 MB / 413.7 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.434, allocations: 1.46 MB / 415.2 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004063/0.4344, allocations: 143.9 kB / 415.3 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.4359, allocations: 0.6827 MB / 416 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001395/0.4373, allocations: 1.516 MB / 417.5 MB, free: 112 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009187/0.4382, allocations: 0.7882 MB / 418.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004993/0.4432, allocations: 4.842 MB / 423.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4433, allocations: 4 kB / 423.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4433, allocations: 0 / 423.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000201/0.4435, allocations: 0 / 423.1 MB, free: 10.45 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.007506/0.451, allocations: 3.866 MB / 427 MB, free: 6.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4511, allocations: 8.031 kB / 427 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001292/0.4524, allocations: 0.6988 MB / 427.7 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007922/0.4603, allocations: 2.268 MB / 430 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005236/0.4656, allocations: 2.402 MB / 432.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.4658, allocations: 229.6 kB / 432.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007255/0.4665, allocations: 295.8 kB / 432.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/0.4839, allocations: 9.718 MB / 442.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/0.4841, allocations: 43.59 kB / 442.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003796/0.4844, allocations: 151.8 kB / 442.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/0.4872, allocations: 1.923 MB / 444.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.5032, allocations: 7.711 MB / 452.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04531/0.5485, allocations: 37.84 MB / 490.3 MB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006733/0.5553, allocations: 2.915 MB / 493.2 MB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006855/0.5622, allocations: 3.889 MB / 497.1 MB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.5623, allocations: 55.16 kB / 497.1 MB, free: 13.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.597e-06/0.5623, allocations: 0 / 497.1 MB, free: 13.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02238/0.5847, allocations: 9.37 MB / 0.4946 GB, free: 4.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.5848, allocations: 149.5 kB / 0.4948 GB, free: 4.254 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005858/0.5907, allocations: 4.128 MB / 0.4988 GB, free: 148 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002502/0.591, allocations: 45.7 kB / 0.4989 GB, free: 96 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002372/0.5933, allocations: 3.093 MB / 0.5019 GB, free: 12.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000839/0.5942, allocations: 0.6058 MB / 0.5025 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.5944, allocations: 116 kB / 0.5026 GB, free: 12.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003764/0.5948, allocations: 0.5461 MB / 0.5031 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002565/0.5974, allocations: 1.55 MB / 0.5046 GB, free: 10.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005225/0.6026, allocations: 5.295 MB / 0.5098 GB, free: 2.926 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/0.607, allocations: 2.816 MB / 0.5125 GB, free: 116 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.25e-05/0.6071, allocations: 36 kB / 0.5126 GB, free: 80 kB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.0117/0.6188, allocations: 6.586 MB / 0.519 GB, free: 9.488 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.619, allocations: 64 kB / 0.5191 GB, free: 9.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002493/0.6192, allocations: 136 kB / 0.5192 GB, free: 9.293 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002388/0.6195, allocations: 192 kB / 0.5194 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004371/0.6239, allocations: 1.372 MB / 0.5207 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002091/0.6241, allocations: 267 kB / 0.521 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/0.6284, allocations: 291.8 kB / 0.5213 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004832/0.6289, allocations: 364 kB / 0.5216 GB, free: 6.828 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.003345/0.6323, allocations: 1.978 MB / 0.5235 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007028/0.633, allocations: 339.6 kB / 0.5239 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006834/0.6337, allocations: 397.6 kB / 0.5242 GB, free: 4.113 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-05/0.6337, allocations: 16 kB / 0.5243 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/0.6337, allocations: 4 kB / 0.5243 GB, free: 4.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.6337, allocations: 7.969 kB / 0.5243 GB, free: 4.086 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2381/0.8719, allocations: 5.761 MB / 0.5299 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-05/0.872, allocations: 23.3 kB / 0.5299 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.873, allocations: 278.7 kB / 0.5302 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.836e-05/0.8731, allocations: 28.03 kB / 0.5302 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.8732, allocations: 55.92 kB / 0.5303 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.822e-05/0.8732, allocations: 37.23 kB / 0.5303 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-05/0.8733, allocations: 30.72 kB / 0.5303 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004599/0.8779, allocations: 5.294 MB / 0.5355 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.8789, allocations: 427.6 kB / 0.5359 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003148/0.8792, allocations: 53.14 kB / 0.536 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.8803, allocations: 64.84 kB / 0.536 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.8805, allocations: 144.5 kB / 0.5361 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-05/0.8806, allocations: 67.03 kB / 0.5362 GB, free: 134.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004413/0.885, allocations: 2.596 MB / 0.5387 GB, free: 133.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.885, allocations: 0 / 0.5387 GB, free: 133.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005098/0.8901, allocations: 0.8814 MB / 0.5396 GB, free: 133.8 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.005418/0.8956, allocations: 10.42 MB / 0.5498 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006821/0.9024, allocations: 3.597 MB / 0.5533 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.388e-05/0.9024, allocations: 2.562 kB / 0.5533 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.904, allocations: 0.736 MB / 0.554 GB, free: 123.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00348/0.9075, allocations: 418.4 kB / 0.5544 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06684/0.9744, allocations: 122.9 MB / 0.6745 GB, free: 5.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002799/0.9772, allocations: 3.176 MB / 0.6776 GB, free: 3.297 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003819/0.981, allocations: 1.775 MB / 0.6793 GB, free: 1.516 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/0.9829, allocations: 1.805 MB / 0.6811 GB, free: 15.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.723e-06/0.9829, allocations: 4 kB / 0.6811 GB, free: 15.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3606/1.344, allocations: 65.57 MB / 0.7451 GB, free: 122.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001457/1.344, allocations: 199.6 kB / 0.7453 GB, free: 122.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.748/5.092, allocations: 2.125 kB / 0.7453 GB, free: 122.5 MB / 462.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