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.0009682/0.0009683, allocations: 98.44 kB / 16.96 MB, free: 6.449 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.001561/0.001561, allocations: 181.8 kB / 17.84 MB, free: 6.008 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.602/1.602, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004302/0.0004303, allocations: 8 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09332/0.09376, allocations: 47.59 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04068/0.1345, allocations: 42.55 MB / 371 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2084/0.343, allocations: 9.429 MB / 380.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009239/0.3523, allocations: 203.6 kB / 380.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007789/0.3601, allocations: 2.186 MB / 382.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01957/0.3797, allocations: 6.595 MB / 389.4 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003459/0.3832, allocations: 0.7001 MB / 390.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009315/0.3925, allocations: 5.209 MB / 395.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008067/0.4006, allocations: 4.511 MB / 399.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003397/0.404, allocations: 1.405 MB / 401.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004198/0.4082, allocations: 2.191 MB / 403.4 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.4097, allocations: 160.8 kB / 403.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003329/0.413, allocations: 0.9844 MB / 404.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003255/0.4163, allocations: 1.886 MB / 406.5 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.4186, allocations: 0.8979 MB / 407.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007555/0.4262, allocations: 5.726 MB / 413.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.4262, allocations: 4 kB / 413.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.4262, allocations: 0 / 413.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004285/0.4266, allocations: 0 / 413.1 MB, free: 1.051 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.01301/0.4397, allocations: 4.431 MB / 417.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.4397, allocations: 12.03 kB / 417.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00287/0.4426, allocations: 0.7945 MB / 418.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008692/0.4513, allocations: 2.185 MB / 420.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007407/0.4587, allocations: 3.339 MB / 423.8 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/0.4591, allocations: 270.8 kB / 424.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/0.4609, allocations: 436.8 kB / 424.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02711/0.488, allocations: 12.22 MB / 436.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002606/0.4883, allocations: 51.53 kB / 436.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001536/0.4899, allocations: 178 kB / 437 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003747/0.4936, allocations: 2.163 MB / 439.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02458/0.5182, allocations: 10.18 MB / 449.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06524/0.5835, allocations: 44.28 MB / 493.6 MB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.5957, allocations: 4.615 MB / 498.2 MB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003001/0.5987, allocations: 1.708 MB / 499.9 MB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/0.6129, allocations: 8.196 MB / 0.4962 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.959e-05/0.613, allocations: 51.88 kB / 0.4963 GB, free: 10.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.93e-06/0.613, allocations: 0 / 0.4963 GB, free: 10.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.04373/0.6567, allocations: 16.04 MB / 0.5119 GB, free: 9.906 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001502/0.6583, allocations: 1.593 MB / 0.5135 GB, free: 8.141 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007955/0.6663, allocations: 4.217 MB / 0.5176 GB, free: 3.898 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004789/0.6668, allocations: 53.8 kB / 0.5177 GB, free: 3.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002677/0.6695, allocations: 3.407 MB / 0.521 GB, free: 464 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/0.6706, allocations: 0.8072 MB / 0.5218 GB, free: 15.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003004/0.6709, allocations: 136 kB / 0.5219 GB, free: 15.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003987/0.6713, allocations: 0.5949 MB / 0.5225 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003547/0.6748, allocations: 2.199 MB / 0.5246 GB, free: 12.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006284/0.6811, allocations: 6.331 MB / 0.5308 GB, free: 4.344 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005563/0.6867, allocations: 3.609 MB / 0.5343 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.985e-05/0.6868, allocations: 44 kB / 0.5344 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.2434/0.9302, allocations: 9.021 MB / 0.5432 GB, free: 156.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000157/0.9305, allocations: 72.16 kB / 0.5433 GB, free: 156.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00754/0.938, allocations: 2.825 MB / 0.546 GB, free: 156.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003507/0.9415, allocations: 1.102 MB / 0.5471 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005543/0.9471, allocations: 1.574 MB / 0.5486 GB, free: 155.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004414/0.9515, allocations: 4.383 MB / 0.5529 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005898/0.9574, allocations: 412.5 kB / 0.5533 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/0.9586, allocations: 419 kB / 0.5537 GB, free: 152.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.004118/0.9628, allocations: 2.212 MB / 0.5559 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007418/0.9635, allocations: 383.1 kB / 0.5562 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005719/0.9693, allocations: 3.299 MB / 0.5595 GB, free: 150.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004351/0.9736, allocations: 2.737 MB / 0.5621 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.979e-05/0.9737, allocations: 5.5 kB / 0.5621 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.06e-05/0.9737, allocations: 10.55 kB / 0.5621 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01636/0.9901, allocations: 10.34 MB / 0.5722 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.53e-05/0.9902, allocations: 16 kB / 0.5722 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.9915, allocations: 363.5 kB / 0.5726 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/0.9941, allocations: 0.993 MB / 0.5736 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002457/0.9943, allocations: 62.08 kB / 0.5736 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004057/0.9984, allocations: 4.596 MB / 0.5781 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007185/0.9991, allocations: 1.47 MB / 0.5795 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007678/1.007, allocations: 5.902 MB / 0.5853 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.009, allocations: 0.6639 MB / 0.586 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003978/1.009, allocations: 60.52 kB / 0.586 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.01, allocations: 148.4 kB / 0.5862 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002733/1.011, allocations: 172.5 kB / 0.5863 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/1.011, allocations: 72.77 kB / 0.5864 GB, free: 127.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00411/1.015, allocations: 2.602 MB / 0.5889 GB, free: 124.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.015, allocations: 0 / 0.5889 GB, free: 124.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006103/1.021, allocations: 1.141 MB / 0.59 GB, free: 123.3 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.007614/1.029, allocations: 6.583 MB / 0.5965 GB, free: 116.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009025/1.038, allocations: 5.833 MB / 0.6022 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/1.038, allocations: 7.828 kB / 0.6022 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003291/1.041, allocations: 2.186 MB / 0.6043 GB, free: 108.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003162/1.044, allocations: 493.4 kB / 0.6048 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06331/1.108, allocations: 38.2 MB / 0.6421 GB, free: 65.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003749/1.111, allocations: 3.467 MB / 0.6455 GB, free: 61.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004714/1.116, allocations: 2.019 MB / 0.6474 GB, free: 59.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/1.119, allocations: 2.107 MB / 0.6495 GB, free: 57.79 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/1.119, allocations: 0 / 0.6495 GB, free: 57.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3384/1.457, allocations: 81.93 MB / 0.7295 GB, free: 136.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/1.457, allocations: 242.1 kB / 0.7297 GB, free: 136.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.419/5.877, allocations: 0 / 0.7297 GB, free: 136.3 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