Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008384/0.0008384, allocations: 98.05 kB / 17 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 197.8 kB / 17.91 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002344/0.0002345, allocations: 8 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1301, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2555/0.3857, allocations: 42.54 MB / 400.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0227/0.4084, allocations: 9.475 MB / 410.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008025/0.4165, allocations: 198.6 kB / 410.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00643/0.4229, allocations: 2.194 MB / 412.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01742/0.4404, allocations: 6.566 MB / 419.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003092/0.4435, allocations: 0.6943 MB / 420 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006747/0.4503, allocations: 5.3 MB / 425.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006197/0.4565, allocations: 4.505 MB / 429.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003263/0.4598, allocations: 1.382 MB / 431.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003763/0.4636, allocations: 2.189 MB / 433.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007476/0.4643, allocations: 160 kB / 433.5 MB, free: 452 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002277/0.4666, allocations: 0.9713 MB / 434.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00182/0.4685, allocations: 1.87 MB / 436.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.4695, allocations: 0.8972 MB / 437.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005923/0.4754, allocations: 5.707 MB / 442.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4755, allocations: 0 / 442.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4755, allocations: 0 / 442.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002573/0.4758, allocations: 4 kB / 443 MB, free: 6.965 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.009099/0.4849, allocations: 4.4 MB / 447.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.4849, allocations: 8.031 kB / 447.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00239/0.4873, allocations: 0.8058 MB / 448.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008143/0.4955, allocations: 2.236 MB / 450.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005563/0.5011, allocations: 2.837 MB / 453.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/0.5013, allocations: 278.8 kB / 453.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009133/0.5022, allocations: 427.7 kB / 453.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02193/0.5242, allocations: 12.28 MB / 466.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.5244, allocations: 51.52 kB / 466.3 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004623/0.5248, allocations: 175.8 kB / 466.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003114/0.528, allocations: 2.174 MB / 468.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0225/0.5505, allocations: 10.23 MB / 478.8 MB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0519/0.6024, allocations: 44.25 MB / 0.5108 GB, free: 4.598 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/0.6139, allocations: 4.665 MB / 0.5154 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002747/0.6166, allocations: 1.716 MB / 0.5171 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/0.6296, allocations: 8.267 MB / 0.5251 GB, free: 5.332 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/0.6297, allocations: 47.88 kB / 0.5252 GB, free: 5.277 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 6.051e-06/0.6297, allocations: 3.938 kB / 0.5252 GB, free: 5.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.3423/0.9721, allocations: 16.16 MB / 0.541 GB, free: 105.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001157/0.9733, allocations: 1.597 MB / 0.5425 GB, free: 104 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007582/0.9809, allocations: 4.191 MB / 0.5466 GB, free: 103.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005567/0.9815, allocations: 54.14 kB / 0.5467 GB, free: 103.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002574/0.984, allocations: 3.402 MB / 0.55 GB, free: 101.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001394/0.9855, allocations: 0.8023 MB / 0.5508 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.9858, allocations: 135.1 kB / 0.5509 GB, free: 101.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000428/0.9863, allocations: 0.5909 MB / 0.5515 GB, free: 100.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00423/0.9905, allocations: 2.235 MB / 0.5537 GB, free: 100.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005159/0.9957, allocations: 6.349 MB / 0.5599 GB, free: 95.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004967/1.001, allocations: 3.641 MB / 0.5634 GB, free: 95.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.618e-05/1.001, allocations: 38.91 kB / 0.5634 GB, free: 95.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01589/1.017, allocations: 9.078 MB / 0.5723 GB, free: 92.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/1.017, allocations: 68 kB / 0.5724 GB, free: 92.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005802/1.023, allocations: 2.885 MB / 0.5752 GB, free: 90.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002892/1.026, allocations: 1.095 MB / 0.5763 GB, free: 89.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004896/1.03, allocations: 1.585 MB / 0.5778 GB, free: 88.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003638/1.034, allocations: 4.384 MB / 0.5821 GB, free: 84.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005904/1.04, allocations: 431.8 kB / 0.5825 GB, free: 83.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001003/1.041, allocations: 414.8 kB / 0.5829 GB, free: 83.63 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004148/1.045, allocations: 2.216 MB / 0.5851 GB, free: 82.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008846/1.046, allocations: 379.1 kB / 0.5854 GB, free: 81.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005932/1.052, allocations: 3.326 MB / 0.5887 GB, free: 79.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004365/1.056, allocations: 2.782 MB / 0.5914 GB, free: 76.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.717e-05/1.056, allocations: 4 kB / 0.5914 GB, free: 76.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/1.056, allocations: 13.45 kB / 0.5914 GB, free: 76.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/1.072, allocations: 10.39 MB / 0.6016 GB, free: 66.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/1.072, allocations: 12 kB / 0.6016 GB, free: 66.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/1.074, allocations: 379 kB / 0.6019 GB, free: 65.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/1.076, allocations: 0.9869 MB / 0.6029 GB, free: 64.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001772/1.076, allocations: 59.98 kB / 0.603 GB, free: 64.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00388/1.08, allocations: 4.602 MB / 0.6074 GB, free: 59.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000744/1.081, allocations: 1.475 MB / 0.6089 GB, free: 58.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008491/1.089, allocations: 5.98 MB / 0.6147 GB, free: 52.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/1.091, allocations: 444 kB / 0.6152 GB, free: 51.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004118/1.092, allocations: 63.97 kB / 0.6152 GB, free: 51.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/1.093, allocations: 163.6 kB / 0.6154 GB, free: 51.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/1.093, allocations: 173.3 kB / 0.6155 GB, free: 51.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/1.094, allocations: 72.48 kB / 0.6156 GB, free: 51.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004127/1.098, allocations: 2.578 MB / 0.6181 GB, free: 48.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.098, allocations: 4 kB / 0.6181 GB, free: 48.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006677/1.104, allocations: 1.129 MB / 0.6192 GB, free: 47.42 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008484/1.113, allocations: 6.665 MB / 0.6257 GB, free: 40.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009882/1.123, allocations: 5.886 MB / 0.6315 GB, free: 35.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/1.123, allocations: 0 / 0.6315 GB, free: 35.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003567/1.127, allocations: 2.216 MB / 0.6336 GB, free: 32.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004751/1.131, allocations: 489.8 kB / 0.6341 GB, free: 32.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06618/1.198, allocations: 38.14 MB / 0.6714 GB, free: 6.055 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004579/1.202, allocations: 3.455 MB / 0.6747 GB, free: 2.566 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005307/1.207, allocations: 2.011 MB / 0.6767 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003279/1.211, allocations: 2.104 MB / 0.6788 GB, free: 14.45 MB / 478.1 MB Notification: Performance of SimCode: time 1.392e-06/1.211, allocations: 0 / 0.6788 GB, free: 14.45 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3875/1.598, allocations: 81.55 MB / 0.7584 GB, free: 144.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/1.599, allocations: 244.8 kB / 0.7586 GB, free: 144.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.262/5.861, allocations: 0 / 0.7586 GB, free: 144.2 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat