Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.000948/0.000948, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005345/0.005345, allocations: 171.1 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1468/0.1468, allocations: 9.092 MB / 300.5 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002829/0.000283, allocations: 8 kB / 363.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08586, allocations: 52.42 MB / 416.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.1758/0.2617, allocations: 18.72 MB / 434.9 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00699/0.2688, allocations: 4.572 MB / 439.5 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002593/0.2714, allocations: 68.25 kB / 439.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006479/0.2721, allocations: 293.2 kB / 439.9 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002088/0.2742, allocations: 1.244 MB / 441.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.2745, allocations: 92.36 kB / 441.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.2765, allocations: 3.434 MB / 444.6 MB, free: 29.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006468/0.2772, allocations: 0.7264 MB / 445.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005441/0.2777, allocations: 0.7234 MB / 446.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.2788, allocations: 1.26 MB / 447.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.2789, allocations: 127 kB / 447.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000893/0.2798, allocations: 0.75 MB / 448.2 MB, free: 28.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005935/0.2805, allocations: 1.145 MB / 449.4 MB, free: 27.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007385/0.2812, allocations: 1.477 MB / 450.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002597/0.2838, allocations: 4.47 MB / 455.3 MB, free: 25.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2838, allocations: 0 / 455.3 MB, free: 25.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2838, allocations: 0 / 455.3 MB, free: 25.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.47e-05/0.2839, allocations: 0 / 455.3 MB, free: 25.3 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.003909/0.2878, allocations: 2.656 MB / 458 MB, free: 23.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2878, allocations: 10.25 kB / 458 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004799/0.2883, allocations: 0.5414 MB / 458.5 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00582/0.2941, allocations: 1.807 MB / 460.3 MB, free: 23.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.2956, allocations: 1.295 MB / 461.6 MB, free: 22.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.861e-05/0.2957, allocations: 143.8 kB / 461.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003032/0.296, allocations: 188.1 kB / 461.9 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009579/0.3056, allocations: 8.061 MB / 470 MB, free: 18.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.811e-05/0.3057, allocations: 25.08 kB / 470 MB, free: 18.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/0.306, allocations: 87.55 kB / 470.1 MB, free: 18.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003283/0.3093, allocations: 1.998 MB / 472.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.3228, allocations: 7.142 MB / 479.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03148/0.3543, allocations: 24.15 MB / 0.4916 GB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004184/0.3585, allocations: 2.149 MB / 0.4937 GB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.3597, allocations: 0.7258 MB / 0.4944 GB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00493/0.3646, allocations: 3.995 MB / 0.4983 GB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.3647, allocations: 43.56 kB / 0.4984 GB, free: 4.066 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 4.128e-06/0.3647, allocations: 1.078 kB / 0.4984 GB, free: 4.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.008444/0.3731, allocations: 4.373 MB / 0.5026 GB, free: 15.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.3732, allocations: 64.41 kB / 0.5027 GB, free: 15.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003525/0.3767, allocations: 2.577 MB / 0.5052 GB, free: 12.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/0.3768, allocations: 41.7 kB / 0.5052 GB, free: 12.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.378, allocations: 2.119 MB / 0.5073 GB, free: 10.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.3784, allocations: 466 kB / 0.5078 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003884/0.3788, allocations: 309.8 kB / 0.5081 GB, free: 9.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.694e-05/0.3789, allocations: 301.1 kB / 0.5083 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/0.3807, allocations: 1.167 MB / 0.5095 GB, free: 8.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002948/0.3836, allocations: 3.316 MB / 0.5127 GB, free: 4.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00469/0.3883, allocations: 4.798 MB / 0.5174 GB, free: 14.28 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.823e-05/0.3884, allocations: 27.94 kB / 0.5174 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.00602/0.3944, allocations: 4.421 MB / 0.5218 GB, free: 9.828 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.444e-05/0.3945, allocations: 44.02 kB / 0.5218 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.179e-05/0.3945, allocations: 76 kB / 0.5219 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-05/0.3946, allocations: 104 kB / 0.522 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002253/0.3969, allocations: 0.8383 MB / 0.5228 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.566e-05/0.397, allocations: 147.4 kB / 0.5229 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.3989, allocations: 175.9 kB / 0.5231 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002424/0.3992, allocations: 228 kB / 0.5233 GB, free: 8.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001909/0.4011, allocations: 1.583 MB / 0.5249 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.4013, allocations: 205.3 kB / 0.5251 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/0.4034, allocations: 1.406 MB / 0.5264 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001216/0.4036, allocations: 27.98 kB / 0.5265 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.4036, allocations: 0 / 0.5265 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.4036, allocations: 7.969 kB / 0.5265 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006429/0.41, allocations: 4.793 MB / 0.5311 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.41, allocations: 7.938 kB / 0.5311 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007625/0.4108, allocations: 175.8 kB / 0.5313 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.4108, allocations: 8 kB / 0.5313 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-05/0.4109, allocations: 31.98 kB / 0.5314 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.4109, allocations: 12.41 kB / 0.5314 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/0.4109, allocations: 8 kB / 0.5314 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/0.4137, allocations: 2.362 MB / 0.5337 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.4141, allocations: 310.4 kB / 0.534 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.4143, allocations: 32.16 kB / 0.534 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006925/0.415, allocations: 47.95 kB / 0.5341 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.4151, allocations: 76.39 kB / 0.5341 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.951e-05/0.4152, allocations: 43.98 kB / 0.5342 GB, free: 12.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002061/0.4173, allocations: 1.652 MB / 0.5358 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4173, allocations: 0 / 0.5358 GB, free: 11.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002261/0.4196, allocations: 0.6227 MB / 0.5364 GB, free: 10.56 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * 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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003255/0.4228, allocations: 3.004 MB / 0.5393 GB, free: 7.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003583/0.4264, allocations: 2.611 MB / 0.5419 GB, free: 4.871 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/0.4264, allocations: 4.062 kB / 0.5419 GB, free: 4.867 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008026/0.4272, allocations: 0.6284 MB / 0.5425 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.4301, allocations: 360 kB / 0.5428 GB, free: 3.891 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03618/0.4663, allocations: 29.7 MB / 0.5718 GB, free: 2.367 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002336/0.4687, allocations: 2.559 MB / 0.5743 GB, free: 15.78 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00259/0.4713, allocations: 1.121 MB / 0.5754 GB, free: 14.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/0.4727, allocations: 1.249 MB / 0.5766 GB, free: 13.4 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4727, allocations: 4 kB / 0.5766 GB, free: 13.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.212/0.6847, allocations: 41.85 MB / 0.6175 GB, free: 132.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/0.6849, allocations: 195.9 kB / 0.6177 GB, free: 132.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/3.228, allocations: 6.25 kB / 0.6177 GB, free: 132.2 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)