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.001222/0.001222, allocations: 94.59 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002435, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1099, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2478/0.3578, allocations: 15.27 MB / 373.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.3689, allocations: 4.827 MB / 378.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002625/0.3716, allocations: 70.94 kB / 378.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001796/0.3734, allocations: 0.7086 MB / 379.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007868/0.3812, allocations: 2.404 MB / 381.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.3827, allocations: 372.5 kB / 381.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003486/0.3862, allocations: 1.526 MB / 383.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002697/0.3889, allocations: 1.86 MB / 385.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001069/0.39, allocations: 0.6256 MB / 385.9 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.3912, allocations: 0.8814 MB / 386.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.3914, allocations: 86.53 kB / 386.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.3933, allocations: 0.8261 MB / 387.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008313/0.3941, allocations: 0.949 MB / 388.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004333/0.3945, allocations: 0.5119 MB / 389.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002928/0.3975, allocations: 3.279 MB / 392.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.3975, allocations: 0 / 392.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3975, allocations: 0 / 392.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.566e-05/0.3975, allocations: 0 / 392.4 MB, free: 4.824 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.004483/0.402, allocations: 2.588 MB / 395 MB, free: 2.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.4021, allocations: 10.16 kB / 395 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005012/0.4026, allocations: 473.1 kB / 395.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007657/0.4103, allocations: 2.131 MB / 397.6 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003599/0.4139, allocations: 1.468 MB / 399 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.414, allocations: 139.7 kB / 399.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006224/0.4147, allocations: 254.5 kB / 399.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/0.426, allocations: 6.71 MB / 406.1 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.121e-05/0.4261, allocations: 31.7 kB / 406.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002651/0.4264, allocations: 86.25 kB / 406.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002157/0.4286, allocations: 1.362 MB / 407.6 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/0.4404, allocations: 6.094 MB / 413.7 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03479/0.4752, allocations: 25.65 MB / 439.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007307/0.4825, allocations: 2.698 MB / 442.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00758/0.4902, allocations: 4.003 MB / 446.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.4902, allocations: 43.12 kB / 446.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 5.511e-06/0.4903, allocations: 3.938 kB / 446.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.03282/0.5231, allocations: 10.63 MB / 456.7 MB, free: 6.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001965/0.5251, allocations: 1.6 MB / 458.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00681/0.5319, allocations: 2.827 MB / 461.2 MB, free: 2.223 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004484/0.5324, allocations: 44.55 kB / 461.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002588/0.535, allocations: 2.097 MB / 463.3 MB, free: 80 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/0.5361, allocations: 0.5003 MB / 463.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006825/0.5368, allocations: 85.64 kB / 463.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0006074/0.5374, allocations: 0.4961 MB / 464.4 MB, free: 15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00435/0.5417, allocations: 1.656 MB / 466 MB, free: 13.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007721/0.5495, allocations: 4.44 MB / 470.5 MB, free: 7.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007083/0.5566, allocations: 2.655 MB / 473.1 MB, free: 4.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/0.5568, allocations: 28 kB / 473.2 MB, free: 4.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.02772/0.5845, allocations: 8.068 MB / 481.2 MB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.5848, allocations: 48 kB / 481.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0134/0.5982, allocations: 3.597 MB / 484.9 MB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/0.6105, allocations: 2.684 MB / 487.5 MB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003503/0.6141, allocations: 1.006 MB / 488.6 MB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/0.6292, allocations: 9.355 MB / 497.9 MB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004005/0.6332, allocations: 327.6 kB / 498.2 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009057/0.6341, allocations: 284 kB / 498.5 MB, free: 11.14 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.003145/0.6373, allocations: 1.421 MB / 499.9 MB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005623/0.6378, allocations: 240.8 kB / 0.4884 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008038/0.6387, allocations: 326 kB / 0.4888 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005834/0.6445, allocations: 2.525 MB / 0.4912 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/0.6445, allocations: 8 kB / 0.4912 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.6446, allocations: 7.984 kB / 0.4912 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01493/0.6595, allocations: 6.891 MB / 0.498 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.6595, allocations: 0 / 0.498 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008715/0.6604, allocations: 175.7 kB / 0.4981 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004858/0.6653, allocations: 1.43 MB / 0.4995 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001654/0.6655, allocations: 31.97 kB / 0.4996 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/0.6757, allocations: 7.535 MB / 0.5069 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001061/0.6767, allocations: 1.466 MB / 0.5083 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009085/0.6858, allocations: 4.987 MB / 0.5132 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.6871, allocations: 301.9 kB / 0.5135 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/0.6876, allocations: 28.09 kB / 0.5135 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.6889, allocations: 119.7 kB / 0.5136 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.6892, allocations: 76.44 kB / 0.5137 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.6893, allocations: 42.64 kB / 0.5138 GB, free: 14.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003259/0.6926, allocations: 1.768 MB / 0.5155 GB, free: 13.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6926, allocations: 0 / 0.5155 GB, free: 13.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0047/0.6973, allocations: 0.797 MB / 0.5163 GB, free: 12.36 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.009138/0.7065, allocations: 5.996 MB / 0.5221 GB, free: 6.293 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008274/0.7148, allocations: 4.395 MB / 0.5264 GB, free: 1.867 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7148, allocations: 0 / 0.5264 GB, free: 1.867 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003113/0.7179, allocations: 1.742 MB / 0.5281 GB, free: 76 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2238/0.9418, allocations: 238.5 kB / 0.5283 GB, free: 148.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06657/1.008, allocations: 93.06 MB / 0.6192 GB, free: 67.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/1.01, allocations: 2.35 MB / 0.6215 GB, free: 66.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002965/1.013, allocations: 1.407 MB / 0.6229 GB, free: 66.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/1.015, allocations: 1.115 MB / 0.624 GB, free: 65.91 MB / 446.1 MB Notification: Performance of SimCode: time 1.402e-06/1.015, allocations: 0 / 0.624 GB, free: 65.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07581/1.09, allocations: 57.46 MB / 0.6801 GB, free: 9.785 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/1.091, allocations: 226.8 kB / 0.6803 GB, free: 9.547 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.208/4.298, allocations: 4.062 kB / 0.6803 GB, free: 9.543 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