Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002412/0.002418, allocations: 187.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.065/2.065, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 94.81 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003961, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09687, allocations: 47.57 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.3131/0.41, allocations: 33.07 MB / 407.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02425/0.4343, allocations: 8.342 MB / 416 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008639/0.443, allocations: 166.2 kB / 416.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006882/0.4499, allocations: 1.608 MB / 417.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02217/0.4722, allocations: 4.869 MB / 422.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003909/0.4761, allocations: 0.6233 MB / 423.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006712/0.4829, allocations: 2.408 MB / 425.7 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007708/0.4907, allocations: 3.356 MB / 429.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.4939, allocations: 1.055 MB / 430.1 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003688/0.4976, allocations: 1.468 MB / 431.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001175/0.4989, allocations: 144 kB / 431.7 MB, free: 3.121 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002966/0.5019, allocations: 0.6983 MB / 432.4 MB, free: 2.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002991/0.5049, allocations: 1.523 MB / 434 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001696/0.5067, allocations: 0.7882 MB / 434.7 MB, free: 100 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009175/0.5159, allocations: 4.866 MB / 439.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.5159, allocations: 0 / 439.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.516, allocations: 4 kB / 439.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002551/0.5162, allocations: 0 / 439.6 MB, free: 11.22 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01276/0.529, allocations: 3.885 MB / 443.5 MB, free: 7.266 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.5291, allocations: 8.031 kB / 443.5 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002575/0.5317, allocations: 0.6988 MB / 444.2 MB, free: 6.547 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01539/0.5471, allocations: 2.268 MB / 446.5 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008017/0.5552, allocations: 2.703 MB / 449.2 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003373/0.5555, allocations: 229.6 kB / 449.4 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.5569, allocations: 295.8 kB / 449.7 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0287/0.5856, allocations: 9.698 MB / 459.4 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.5859, allocations: 55.52 kB / 459.4 MB, free: 6.477 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009139/0.5868, allocations: 139.9 kB / 459.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005353/0.5921, allocations: 1.915 MB / 461.5 MB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02562/0.6178, allocations: 7.699 MB / 469.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06882/0.6867, allocations: 37.88 MB / 0.4952 GB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.6987, allocations: 2.902 MB / 0.498 GB, free: 2.609 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01025/0.709, allocations: 3.809 MB / 0.5017 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.733e-05/0.7091, allocations: 51.2 kB / 0.5018 GB, free: 14.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.901e-06/0.7092, allocations: 0 / 0.5018 GB, free: 14.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.0394/0.7486, allocations: 9.436 MB / 0.511 GB, free: 4.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.7487, allocations: 145.5 kB / 0.5111 GB, free: 4.754 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009865/0.7586, allocations: 4.161 MB / 0.5152 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/0.7589, allocations: 45.7 kB / 0.5153 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003429/0.7624, allocations: 3.023 MB / 0.5182 GB, free: 13.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009769/0.7634, allocations: 0.6096 MB / 0.5188 GB, free: 12.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000563/0.764, allocations: 116 kB / 0.5189 GB, free: 12.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005058/0.7645, allocations: 0.5508 MB / 0.5195 GB, free: 12.15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004793/0.7693, allocations: 1.542 MB / 0.521 GB, free: 10.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008667/0.778, allocations: 5.291 MB / 0.5261 GB, free: 3.414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007453/0.7855, allocations: 2.789 MB / 0.5288 GB, free: 0.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001274/0.7857, allocations: 40 kB / 0.5289 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.0188/0.8045, allocations: 6.469 MB / 0.5352 GB, free: 10.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.8046, allocations: 64.06 kB / 0.5353 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002413/0.8049, allocations: 136 kB / 0.5354 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002729/0.8052, allocations: 199.8 kB / 0.5356 GB, free: 9.727 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008442/0.8136, allocations: 1.369 MB / 0.5369 GB, free: 8.355 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003453/0.814, allocations: 263 kB / 0.5372 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005805/0.8198, allocations: 287.6 kB / 0.5374 GB, free: 7.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001202/0.8211, allocations: 363.9 kB / 0.5378 GB, free: 7.461 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005452/0.8266, allocations: 1.974 MB / 0.5397 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008827/0.8275, allocations: 336.1 kB / 0.54 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003758/0.8313, allocations: 1.254 MB / 0.5413 GB, free: 3.871 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.023e-05/0.8314, allocations: 19.95 kB / 0.5413 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.8314, allocations: 4 kB / 0.5413 GB, free: 3.848 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-05/0.8314, allocations: 7.969 kB / 0.5413 GB, free: 3.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2963/1.128, allocations: 5.764 MB / 0.5469 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.933e-05/1.128, allocations: 17.16 kB / 0.5469 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/1.13, allocations: 276.8 kB / 0.5472 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.902e-05/1.13, allocations: 28.16 kB / 0.5472 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/1.13, allocations: 50.97 kB / 0.5473 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-05/1.13, allocations: 39.89 kB / 0.5473 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.686e-05/1.13, allocations: 29.06 kB / 0.5473 GB, free: 139.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007298/1.138, allocations: 5.286 MB / 0.5525 GB, free: 135.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001885/1.14, allocations: 0.5186 MB / 0.553 GB, free: 135.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008832/1.14, allocations: 54.27 kB / 0.5531 GB, free: 135.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002414/1.143, allocations: 61.39 kB / 0.5531 GB, free: 135.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003838/1.143, allocations: 143.3 kB / 0.5533 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/1.143, allocations: 77.39 kB / 0.5533 GB, free: 135.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007251/1.151, allocations: 2.619 MB / 0.5559 GB, free: 134.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.02e-07/1.151, allocations: 3.969 kB / 0.5559 GB, free: 134.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006968/1.158, allocations: 0.8824 MB / 0.5568 GB, free: 134.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009209/1.167, allocations: 10.42 MB / 0.5669 GB, free: 125.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009274/1.176, allocations: 3.588 MB / 0.5704 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.876e-05/1.176, allocations: 0 / 0.5704 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/1.178, allocations: 0.726 MB / 0.5711 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.182, allocations: 427.8 kB / 0.5716 GB, free: 123.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08978/1.271, allocations: 123.5 MB / 0.6921 GB, free: 4.793 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005647/1.277, allocations: 3.194 MB / 0.6953 GB, free: 1.973 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00351/1.281, allocations: 1.847 MB / 0.6971 GB, free: 128 kB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/1.281, allocations: 0 / 0.6971 GB, free: 128 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.332/5.612, allocations: 74.53 MB / 0.7698 GB, free: 113.3 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat