Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 96.05 kB / 16.93 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 182.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004501, allocations: 11.28 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 47.59 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.03903/0.1446, allocations: 40.18 MB / 368.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.1687, allocations: 9.84 MB / 378.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008743/0.1775, allocations: 203.4 kB / 378.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2212/0.3987, allocations: 1.955 MB / 380.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01926/0.418, allocations: 5.803 MB / 386.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00296/0.421, allocations: 0.6945 MB / 387.1 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00525/0.4263, allocations: 2.623 MB / 389.7 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006911/0.4332, allocations: 4.487 MB / 394.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.4355, allocations: 1.157 MB / 395.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003004/0.4385, allocations: 1.568 MB / 396.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00113/0.4396, allocations: 160.7 kB / 397.1 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002959/0.4426, allocations: 0.9587 MB / 398.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002542/0.4452, allocations: 1.746 MB / 399.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001724/0.4469, allocations: 0.8987 MB / 400.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006588/0.4535, allocations: 5.717 MB / 406.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.4535, allocations: 2.344 kB / 406.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.62e-06/0.4535, allocations: 6.062 kB / 406.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002877/0.4538, allocations: 4 kB / 406.4 MB, free: 5.258 MB / 318.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.00988/0.4637, allocations: 4.431 MB / 410.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.4638, allocations: 8.594 kB / 410.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001278/0.4651, allocations: 0.7983 MB / 411.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008871/0.4739, allocations: 2.521 MB / 414.2 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00621/0.4802, allocations: 2.913 MB / 417.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.4804, allocations: 278.6 kB / 417.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001157/0.4816, allocations: 430.4 kB / 417.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/0.5041, allocations: 12.34 MB / 430.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.5042, allocations: 52.66 kB / 430.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000433/0.5046, allocations: 173.1 kB / 430.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003275/0.5079, allocations: 2.16 MB / 432.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02171/0.5296, allocations: 10.34 MB / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0571/0.5868, allocations: 44.93 MB / 487.8 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02021/0.607, allocations: 7.166 MB / 495 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01476/0.6218, allocations: 9.317 MB / 0.4925 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/0.6219, allocations: 57.33 kB / 0.4925 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 4.658e-06/0.6219, allocations: 0 / 0.4925 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of matching and sorting (n=205): time 0.06807/0.69, allocations: 22.51 MB / 0.5145 GB, free: 10.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001574/0.6916, allocations: 1.605 MB / 0.5161 GB, free: 8.324 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009488/0.7011, allocations: 4.441 MB / 0.5204 GB, free: 3.859 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007085/0.7019, allocations: 57.7 kB / 0.5204 GB, free: 3.797 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003794/0.7057, allocations: 3.411 MB / 0.5238 GB, free: 416 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001702/0.7074, allocations: 0.8004 MB / 0.5246 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005237/0.708, allocations: 132 kB / 0.5247 GB, free: 15.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005766/0.7085, allocations: 0.5949 MB / 0.5253 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005567/0.7141, allocations: 2.348 MB / 0.5276 GB, free: 12.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007801/0.722, allocations: 6.447 MB / 0.5339 GB, free: 4.047 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/0.729, allocations: 3.768 MB / 0.5375 GB, free: 296 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/0.7292, allocations: 40 kB / 0.5376 GB, free: 256 kB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.2332/0.9625, allocations: 10.2 MB / 0.5475 GB, free: 155.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.9626, allocations: 67.25 kB / 0.5476 GB, free: 155.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01147/0.9741, allocations: 4.013 MB / 0.5515 GB, free: 154.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0102/0.9843, allocations: 2.189 MB / 0.5537 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005432/0.9898, allocations: 1.588 MB / 0.5552 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00769/0.9975, allocations: 6.366 MB / 0.5614 GB, free: 150.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005978/1.004, allocations: 452.6 kB / 0.5619 GB, free: 150.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009356/1.004, allocations: 413 kB / 0.5622 GB, free: 150.6 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.00352/1.008, allocations: 2.222 MB / 0.5644 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000615/1.009, allocations: 378.6 kB / 0.5648 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005615/1.014, allocations: 3.516 MB / 0.5682 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00459/1.019, allocations: 2.937 MB / 0.5711 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/1.019, allocations: 7.984 kB / 0.5711 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/1.019, allocations: 7.969 kB / 0.5711 GB, free: 145.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01661/1.036, allocations: 10.74 MB / 0.5816 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/1.036, allocations: 12 kB / 0.5816 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/1.037, allocations: 394.4 kB / 0.582 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002601/1.04, allocations: 0.9941 MB / 0.5829 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/1.04, allocations: 57 kB / 0.583 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/1.044, allocations: 4.678 MB / 0.5876 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008673/1.045, allocations: 1.482 MB / 0.589 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00959/1.054, allocations: 7.853 MB / 0.5967 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002167/1.057, allocations: 0.6883 MB / 0.5974 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005971/1.057, allocations: 57.16 kB / 0.5974 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/1.059, allocations: 183.7 kB / 0.5976 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002778/1.059, allocations: 168.5 kB / 0.5977 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/1.059, allocations: 76.77 kB / 0.5978 GB, free: 117.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003745/1.063, allocations: 2.774 MB / 0.6005 GB, free: 114.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.063, allocations: 0 / 0.6005 GB, free: 114.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006323/1.069, allocations: 1.191 MB / 0.6017 GB, free: 113.2 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.008973/1.078, allocations: 11.72 MB / 0.6131 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.089, allocations: 6.1 MB / 0.6191 GB, free: 94.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.406e-05/1.089, allocations: 4 kB / 0.6191 GB, free: 94.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003846/1.093, allocations: 2.287 MB / 0.6213 GB, free: 92.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/1.095, allocations: 467.5 kB / 0.6218 GB, free: 92.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2954/1.391, allocations: 140.3 MB / 0.7588 GB, free: 115 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003293/1.394, allocations: 3.562 MB / 0.7623 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005116/1.399, allocations: 2.05 MB / 0.7643 GB, free: 113.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003551/1.403, allocations: 2.111 MB / 0.7664 GB, free: 111.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.743e-06/1.403, allocations: 0 / 0.7664 GB, free: 111.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1376/1.54, allocations: 85.85 MB / 0.8502 GB, free: 28.96 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/1.54, allocations: 235.5 kB / 0.8504 GB, free: 28.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.384/5.924, allocations: 0 / 0.8504 GB, free: 28.72 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat