Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_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_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",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.001054/0.001054, allocations: 95.48 kB / 16.93 MB, free: 5.984 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.001234/0.001234, allocations: 176.2 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.6/1.6, 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.0004418/0.0004419, allocations: 19.28 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09604/0.09649, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02884/0.1254, allocations: 33.08 MB / 361.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.1434, allocations: 8.343 MB / 369.8 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0075/0.151, allocations: 163.6 kB / 370 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006068/0.1571, allocations: 1.61 MB / 371.6 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01656/0.1737, allocations: 4.866 MB / 376.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002983/0.1767, allocations: 0.6241 MB / 377.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005247/0.1819, allocations: 2.41 MB / 379.5 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2099/0.3918, allocations: 3.342 MB / 382.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002587/0.3944, allocations: 1.059 MB / 383.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003009/0.3975, allocations: 1.462 MB / 385.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008068/0.3983, allocations: 142.8 kB / 385.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002132/0.4004, allocations: 0.6923 MB / 386.2 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002118/0.4026, allocations: 1.525 MB / 387.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.404, allocations: 0.7966 MB / 388.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007457/0.4115, allocations: 4.867 MB / 393.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.4115, allocations: 0 / 393.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4115, allocations: 2.531 kB / 393.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003263/0.4119, allocations: 0 / 393.4 MB, free: 10.46 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01067/0.4226, allocations: 3.889 MB / 397.3 MB, free: 8.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.4226, allocations: 9.406 kB / 397.3 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001721/0.4244, allocations: 0.6943 MB / 398 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008184/0.4325, allocations: 2.263 MB / 400.3 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005445/0.438, allocations: 2.71 MB / 403 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.4382, allocations: 224.6 kB / 403.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005945/0.4388, allocations: 294.3 kB / 403.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01609/0.4549, allocations: 9.697 MB / 413.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/0.4551, allocations: 59.03 kB / 413.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003807/0.4555, allocations: 144.1 kB / 413.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002626/0.4581, allocations: 1.918 MB / 415.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01602/0.4741, allocations: 7.701 MB / 423 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04871/0.5229, allocations: 37.89 MB / 460.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006645/0.5296, allocations: 2.894 MB / 463.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006729/0.5363, allocations: 3.806 MB / 467.6 MB, free: 5.219 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.5364, allocations: 49.45 kB / 467.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of pre-optimization done (n=134): time 3.807e-06/0.5364, allocations: 0 / 467.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=152): time 0.02167/0.5581, allocations: 9.438 MB / 477.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.5582, allocations: 148.2 kB / 477.2 MB, free: 11.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005686/0.5639, allocations: 4.162 MB / 481.4 MB, free: 7.223 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000219/0.5641, allocations: 42.56 kB / 481.4 MB, free: 7.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/0.5663, allocations: 3.094 MB / 484.5 MB, free: 4.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006703/0.5669, allocations: 0.6062 MB / 485.1 MB, free: 3.496 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.5671, allocations: 123.5 kB / 485.2 MB, free: 3.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003288/0.5675, allocations: 0.5461 MB / 485.8 MB, free: 2.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.5699, allocations: 1.542 MB / 487.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004788/0.5747, allocations: 5.291 MB / 492.6 MB, free: 10.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004115/0.5788, allocations: 2.801 MB / 495.4 MB, free: 7.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.369e-05/0.5789, allocations: 36 kB / 495.4 MB, free: 7.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01089/0.5898, allocations: 6.56 MB / 0.4902 GB, free: 1.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.18e-05/0.5899, allocations: 64 kB / 0.4903 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/0.59, allocations: 139.9 kB / 0.4904 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.5902, allocations: 192.8 kB / 0.4906 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00385/0.5941, allocations: 1.376 MB / 0.492 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000184/0.5943, allocations: 263 kB / 0.4922 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/0.598, allocations: 292.8 kB / 0.4925 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004732/0.5985, allocations: 360 kB / 0.4928 GB, free: 14.51 MB / 414.1 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.003629/0.6021, allocations: 1.983 MB / 0.4948 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006513/0.6028, allocations: 335.6 kB / 0.4951 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002024/0.6048, allocations: 1.252 MB / 0.4963 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.6048, allocations: 16 kB / 0.4963 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.6049, allocations: 8 kB / 0.4963 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.6049, allocations: 7.938 kB / 0.4963 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009482/0.6144, allocations: 5.762 MB / 0.502 GB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.482e-05/0.6144, allocations: 20 kB / 0.502 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.6154, allocations: 271.5 kB / 0.5022 GB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.779e-05/0.6154, allocations: 28 kB / 0.5023 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.591e-05/0.6155, allocations: 51.95 kB / 0.5023 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.577e-05/0.6155, allocations: 36.73 kB / 0.5024 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.12e-05/0.6156, allocations: 27.88 kB / 0.5024 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.6203, allocations: 5.296 MB / 0.5076 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.6218, allocations: 0.5238 MB / 0.5081 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000379/0.6222, allocations: 55.94 kB / 0.5081 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.6233, allocations: 63.95 kB / 0.5082 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.6234, allocations: 145.3 kB / 0.5083 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.439e-05/0.6235, allocations: 75.98 kB / 0.5084 GB, free: 13.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004118/0.6277, allocations: 2.611 MB / 0.5109 GB, free: 10.72 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6277, allocations: 1.641 kB / 0.5109 GB, free: 10.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0063/0.634, allocations: 0.8906 MB / 0.5118 GB, free: 9.828 MB / 430.1 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.007948/0.642, allocations: 10.41 MB / 0.522 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006793/0.6488, allocations: 3.578 MB / 0.5255 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.917e-05/0.6488, allocations: 4.25 kB / 0.5255 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.65, allocations: 0.7191 MB / 0.5262 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002715/0.6527, allocations: 421.3 kB / 0.5266 GB, free: 10.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3/0.9527, allocations: 123 MB / 0.6467 GB, free: 18.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003706/0.9565, allocations: 3.195 MB / 0.6499 GB, free: 17.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00416/0.9607, allocations: 1.773 MB / 0.6516 GB, free: 17.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002393/0.9631, allocations: 1.802 MB / 0.6534 GB, free: 17.06 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.9631, allocations: 4 kB / 0.6534 GB, free: 17.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3098/1.273, allocations: 66.02 MB / 0.7178 GB, free: 175.2 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/1.273, allocations: 200.3 kB / 0.718 GB, free: 175 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.991/5.264, allocations: 0 / 0.718 GB, free: 175 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat