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.0008673/0.0008677, allocations: 176.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007866/0.0007865, allocations: 86.36 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1971, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02246/0.2196, allocations: 35.02 MB / 410.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.2334, allocations: 8.013 MB / 418.2 MB, free: 5.551 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003609/0.237, allocations: 167.6 kB / 418.4 MB, free: 5.387 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002576/0.2396, allocations: 1.792 MB / 420.2 MB, free: 3.586 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009271/0.2489, allocations: 5.529 MB / 425.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.2505, allocations: 0.6553 MB / 426.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00481/0.2553, allocations: 4.761 MB / 431.1 MB, free: 8.609 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003939/0.2593, allocations: 3.596 MB / 434.7 MB, free: 4.945 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.2607, allocations: 1.273 MB / 436 MB, free: 3.668 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002072/0.2628, allocations: 2.017 MB / 438 MB, free: 1.645 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.2631, allocations: 140 kB / 438.1 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00138/0.2645, allocations: 0.819 MB / 439 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.2657, allocations: 1.64 MB / 440.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.2672, allocations: 1.838 MB / 442.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00373/0.2709, allocations: 4.879 MB / 447.3 MB, free: 8.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2709, allocations: 0 / 447.3 MB, free: 8.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2709, allocations: 0 / 447.3 MB, free: 8.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.644e-05/0.271, allocations: 0 / 447.3 MB, free: 8.293 MB / 330.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.005405/0.2764, allocations: 3.831 MB / 451.2 MB, free: 4.395 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2764, allocations: 8.031 kB / 451.2 MB, free: 4.387 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007134/0.2772, allocations: 0.6951 MB / 451.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006664/0.2838, allocations: 1.992 MB / 453.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004494/0.2883, allocations: 3.159 MB / 457 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.2885, allocations: 237.6 kB / 457.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004263/0.2889, allocations: 291.8 kB / 457.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/0.301, allocations: 9.624 MB / 467.1 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-05/0.3011, allocations: 51.52 kB / 467.2 MB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003148/0.3014, allocations: 147.9 kB / 467.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002552/0.304, allocations: 1.915 MB / 469.3 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0121/0.3161, allocations: 7.61 MB / 476.9 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1876/0.5037, allocations: 37.79 MB / 0.5026 GB, free: 82.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00589/0.5096, allocations: 2.873 MB / 0.5054 GB, free: 81.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.5107, allocations: 0.8771 MB / 0.5063 GB, free: 81.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004604/0.5154, allocations: 3.768 MB / 0.5099 GB, free: 79.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.5154, allocations: 48.47 kB / 0.51 GB, free: 79.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 2.895e-06/0.5154, allocations: 3.781 kB / 0.51 GB, free: 79.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01687/0.5323, allocations: 9.126 MB / 0.5189 GB, free: 74.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.5324, allocations: 146 kB / 0.519 GB, free: 74.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003708/0.5361, allocations: 3.948 MB / 0.5229 GB, free: 71.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.072e-05/0.5362, allocations: 45.14 kB / 0.5229 GB, free: 71.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001176/0.5373, allocations: 3.097 MB / 0.526 GB, free: 69.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.5376, allocations: 0.6014 MB / 0.5265 GB, free: 68.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.5378, allocations: 115.2 kB / 0.5267 GB, free: 68.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.538, allocations: 0.5539 MB / 0.5272 GB, free: 68.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/0.5398, allocations: 1.541 MB / 0.5287 GB, free: 66.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00277/0.5426, allocations: 5.31 MB / 0.5339 GB, free: 59.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004921/0.5475, allocations: 7.488 MB / 0.5412 GB, free: 50.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.949e-05/0.5476, allocations: 39.94 kB / 0.5412 GB, free: 50.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.00716/0.5548, allocations: 6.584 MB / 0.5477 GB, free: 43.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/0.5548, allocations: 60 kB / 0.5477 GB, free: 43.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.587e-05/0.5549, allocations: 140.7 kB / 0.5479 GB, free: 43.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001057/0.555, allocations: 176.8 kB / 0.548 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/0.5581, allocations: 1.373 MB / 0.5494 GB, free: 42.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001124/0.5582, allocations: 259 kB / 0.5496 GB, free: 41.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002619/0.5608, allocations: 284.5 kB / 0.5499 GB, free: 41.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002804/0.5611, allocations: 365.3 kB / 0.5502 GB, free: 41.13 MB / 378.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.001917/0.563, allocations: 1.986 MB / 0.5522 GB, free: 39.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/0.5633, allocations: 339.5 kB / 0.5525 GB, free: 38.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.5648, allocations: 1.239 MB / 0.5537 GB, free: 37.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.5649, allocations: 21.94 kB / 0.5537 GB, free: 37.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.5649, allocations: 8 kB / 0.5537 GB, free: 37.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.5649, allocations: 3.984 kB / 0.5537 GB, free: 37.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006125/0.571, allocations: 5.76 MB / 0.5594 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/0.5711, allocations: 16 kB / 0.5594 GB, free: 31.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007748/0.5718, allocations: 275.5 kB / 0.5596 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.614e-05/0.5719, allocations: 27.94 kB / 0.5597 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.5719, allocations: 55.88 kB / 0.5597 GB, free: 31.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.686e-05/0.572, allocations: 35.86 kB / 0.5598 GB, free: 31.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.572, allocations: 23.94 kB / 0.5598 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.5745, allocations: 3.215 MB / 0.5629 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006417/0.5751, allocations: 0.5199 MB / 0.5634 GB, free: 27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000254/0.5754, allocations: 51.92 kB / 0.5635 GB, free: 26.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009312/0.5763, allocations: 59.95 kB / 0.5635 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.5765, allocations: 147.4 kB / 0.5637 GB, free: 26.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.187e-05/0.5766, allocations: 64 kB / 0.5637 GB, free: 26.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00247/0.5791, allocations: 2.443 MB / 0.5661 GB, free: 24.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5791, allocations: 4 kB / 0.5661 GB, free: 24.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003224/0.5823, allocations: 0.8581 MB / 0.567 GB, free: 23.37 MB / 378.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.002787/0.5851, allocations: 3.883 MB / 0.5708 GB, free: 19.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003894/0.589, allocations: 3.581 MB / 0.5743 GB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.589, allocations: 0 / 0.5743 GB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006792/0.5897, allocations: 0.7307 MB / 0.575 GB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/0.5997, allocations: 454 kB / 0.5754 GB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04079/0.6405, allocations: 30.99 MB / 0.6057 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003505/0.6441, allocations: 3.111 MB / 0.6087 GB, free: 8.449 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/0.6462, allocations: 1.843 MB / 0.6105 GB, free: 6.605 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6462, allocations: 0 / 0.6105 GB, free: 6.605 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.002/6.649, allocations: 66.91 MB / 0.6758 GB, free: 167.8 MB / 458.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) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches