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/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.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/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 93.22 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00089/0.0008899, allocations: 197.2 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002509/0.0002509, allocations: 8 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.254/0.3814, allocations: 16.11 MB / 374.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.3927, allocations: 4.702 MB / 379.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003886/0.3966, allocations: 74.88 kB / 379.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002978/0.3996, allocations: 0.79 MB / 380 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008876/0.4085, allocations: 2.638 MB / 382.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.41, allocations: 378.1 kB / 383 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005075/0.4151, allocations: 2.923 MB / 385.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002981/0.4181, allocations: 1.873 MB / 387.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.4195, allocations: 0.7369 MB / 388.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.4212, allocations: 1.205 MB / 389.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002769/0.4215, allocations: 86.41 kB / 389.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00191/0.4234, allocations: 0.8496 MB / 390.7 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.4245, allocations: 1.022 MB / 391.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005294/0.4251, allocations: 0.5136 MB / 392.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003595/0.4287, allocations: 3.274 MB / 395.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.4287, allocations: 0 / 395.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4287, allocations: 0 / 395.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.99e-05/0.4288, allocations: 5.469 kB / 395.5 MB, free: 3.082 MB / 302.1 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.005771/0.4346, allocations: 2.572 MB / 398 MB, free: 1.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4346, allocations: 9.062 kB / 398.1 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005989/0.4352, allocations: 470.7 kB / 398.5 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006155/0.4414, allocations: 1.846 MB / 400.4 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/0.4449, allocations: 1.558 MB / 401.9 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.445, allocations: 136.5 kB / 402.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006403/0.4457, allocations: 263.8 kB / 402.3 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/0.4577, allocations: 6.668 MB / 409 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.902e-05/0.4578, allocations: 31.72 kB / 409 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002764/0.4581, allocations: 93.2 kB / 409.1 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002155/0.4603, allocations: 1.357 MB / 410.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01209/0.4724, allocations: 6.043 MB / 416.5 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03486/0.5073, allocations: 25.57 MB / 442.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006573/0.5139, allocations: 2.69 MB / 444.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.5156, allocations: 1.028 MB / 445.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007103/0.5227, allocations: 3.945 MB / 449.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.32e-05/0.5228, allocations: 59.06 kB / 449.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.188e-06/0.5228, allocations: 0 / 449.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02878/0.5516, allocations: 10.35 MB / 460.1 MB, free: 3.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001489/0.5531, allocations: 1.59 MB / 461.7 MB, free: 1.867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006373/0.5595, allocations: 2.718 MB / 464.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004565/0.56, allocations: 41.7 kB / 464.5 MB, free: 15.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002104/0.5622, allocations: 2.09 MB / 466.6 MB, free: 12.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009247/0.5631, allocations: 0.508 MB / 467.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.5634, allocations: 86.81 kB / 467.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000336/0.5637, allocations: 0.5001 MB / 467.7 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002728/0.5665, allocations: 1.613 MB / 469.3 MB, free: 10.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004667/0.5711, allocations: 4.409 MB / 473.7 MB, free: 4.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003954/0.5751, allocations: 2.609 MB / 476.3 MB, free: 1.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.493e-05/0.5752, allocations: 28 kB / 476.3 MB, free: 1.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01414/0.5893, allocations: 7.016 MB / 483.3 MB, free: 10.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.498e-05/0.5895, allocations: 48 kB / 483.4 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00575/0.5952, allocations: 2.548 MB / 485.9 MB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004696/0.5999, allocations: 1.502 MB / 487.4 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003454/0.6034, allocations: 1.01 MB / 488.5 MB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0098/0.6132, allocations: 7.192 MB / 495.6 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004549/0.6178, allocations: 336.1 kB / 496 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/0.6189, allocations: 280 kB / 496.2 MB, free: 13.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * 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 (543): * Single equations (assignments): 535 * 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.003819/0.6228, allocations: 1.421 MB / 497.7 MB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000656/0.6234, allocations: 229 kB / 497.9 MB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000992/0.6244, allocations: 330 kB / 498.2 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005602/0.63, allocations: 2.529 MB / 0.489 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.6301, allocations: 4 kB / 0.489 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/0.6301, allocations: 3.984 kB / 0.489 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/0.643, allocations: 6.891 MB / 0.4957 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.643, allocations: 0 / 0.4957 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007893/0.6438, allocations: 175.7 kB / 0.4959 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004307/0.6481, allocations: 1.434 MB / 0.4973 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.6483, allocations: 39.97 kB / 0.4973 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009342/0.6576, allocations: 7.32 MB / 0.5045 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000967/0.6586, allocations: 1.454 MB / 0.5059 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008688/0.6673, allocations: 4.867 MB / 0.5107 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/0.6682, allocations: 301.9 kB / 0.511 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.6684, allocations: 20 kB / 0.511 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.6694, allocations: 119.8 kB / 0.5111 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.6697, allocations: 80.39 kB / 0.5112 GB, free: 1.828 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.6698, allocations: 35.98 kB / 0.5112 GB, free: 1.793 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002728/0.6725, allocations: 1.686 MB / 0.5128 GB, free: 100 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6725, allocations: 0 / 0.5128 GB, free: 100 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.00498/0.6775, allocations: 0.7645 MB / 0.5136 GB, free: 15.33 MB / 446.1 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.008668/0.6862, allocations: 5.506 MB / 0.519 GB, free: 9.785 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007552/0.6938, allocations: 4.319 MB / 0.5232 GB, free: 5.438 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.6938, allocations: 4 kB / 0.5232 GB, free: 5.434 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003005/0.6968, allocations: 1.718 MB / 0.5249 GB, free: 3.664 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/0.6988, allocations: 268.3 kB / 0.5251 GB, free: 3.402 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3077/1.007, allocations: 23.71 MB / 0.5483 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00266/1.009, allocations: 2.291 MB / 0.5505 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003324/1.013, allocations: 1.407 MB / 0.5519 GB, free: 136.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001299/1.014, allocations: 1.114 MB / 0.553 GB, free: 135.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.853e-06/1.014, allocations: 0 / 0.553 GB, free: 135.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0789/1.093, allocations: 54.37 MB / 0.6061 GB, free: 86 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/1.093, allocations: 238.4 kB / 0.6063 GB, free: 85.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.103/4.196, allocations: 0 / 0.6063 GB, free: 85.76 MB / 446.1 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