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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0008023/0.0008025, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0008263/0.0008263, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.3 MB / 240 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1767/0.1767, allocations: 9.107 MB / 300.2 MB, free: 2.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002908, allocations: 12 kB / 363.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09248/0.09279, allocations: 52.44 MB / 415.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.1792/0.272, allocations: 17.45 MB / 433.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006509/0.2786, allocations: 4.373 MB / 437.5 MB, free: 32.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.2804, allocations: 67.06 kB / 437.5 MB, free: 32.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.2818, allocations: 0.8149 MB / 438.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004683/0.2865, allocations: 2.975 MB / 441.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.2869, allocations: 101.9 kB / 441.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002622/0.2895, allocations: 2.699 MB / 444.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008432/0.2904, allocations: 0.7215 MB / 444.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007205/0.2911, allocations: 0.763 MB / 445.6 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.2922, allocations: 1.26 MB / 446.9 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002032/0.2924, allocations: 125.2 kB / 447 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009718/0.2934, allocations: 0.6498 MB / 447.6 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006776/0.2941, allocations: 1.094 MB / 448.7 MB, free: 28.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003696/0.2945, allocations: 0.633 MB / 449.4 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002125/0.2966, allocations: 3.629 MB / 453 MB, free: 27.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2966, allocations: 3.156 kB / 453 MB, free: 27.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2966, allocations: 0 / 453 MB, free: 27.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.243e-05/0.2967, allocations: 4 kB / 453 MB, free: 27.15 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.003725/0.3004, allocations: 2.686 MB / 455.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3004, allocations: 9.531 kB / 455.7 MB, free: 25.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005103/0.301, allocations: 0.5457 MB / 456.2 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005455/0.3064, allocations: 1.807 MB / 458.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.3082, allocations: 1.275 MB / 459.3 MB, free: 24.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.764e-05/0.3083, allocations: 145.9 kB / 459.5 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003096/0.3087, allocations: 179.5 kB / 459.6 MB, free: 24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.3187, allocations: 8.045 MB / 467.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.3188, allocations: 20.91 kB / 467.7 MB, free: 20.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002355/0.3191, allocations: 90.56 kB / 467.8 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003098/0.3222, allocations: 2.01 MB / 469.8 MB, free: 19.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.3353, allocations: 7.106 MB / 476.9 MB, free: 17.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02778/0.3631, allocations: 24.15 MB / 0.4893 GB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004296/0.3674, allocations: 2.151 MB / 0.4914 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.3686, allocations: 0.7197 MB / 0.4921 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005113/0.3737, allocations: 3.983 MB / 0.496 GB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.3738, allocations: 43.5 kB / 0.4961 GB, free: 6.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.396e-06/0.3738, allocations: 0 / 0.4961 GB, free: 6.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.008316/0.3821, allocations: 4.362 MB / 0.5003 GB, free: 1.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.3822, allocations: 64.41 kB / 0.5004 GB, free: 1.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/0.3855, allocations: 2.569 MB / 0.5029 GB, free: 15.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.063e-05/0.3855, allocations: 37.7 kB / 0.5029 GB, free: 15.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.3868, allocations: 2.112 MB / 0.505 GB, free: 12.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003399/0.3871, allocations: 466 kB / 0.5054 GB, free: 12.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.3873, allocations: 72 kB / 0.5055 GB, free: 12.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.3875, allocations: 470.1 kB / 0.5059 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.3893, allocations: 1.147 MB / 0.5071 GB, free: 10.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003004/0.3923, allocations: 3.308 MB / 0.5103 GB, free: 6.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/0.3951, allocations: 1.944 MB / 0.5122 GB, free: 4.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.434e-05/0.3952, allocations: 20 kB / 0.5122 GB, free: 4.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.006944/0.4021, allocations: 4.403 MB / 0.5165 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/0.4022, allocations: 37.88 kB / 0.5166 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.4023, allocations: 80 kB / 0.5166 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001136/0.4024, allocations: 112.7 kB / 0.5167 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002394/0.4048, allocations: 0.846 MB / 0.5176 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001175/0.405, allocations: 147.4 kB / 0.5177 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.407, allocations: 187.9 kB / 0.5179 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003013/0.4073, allocations: 224 kB / 0.5181 GB, free: 14.46 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002118/0.4094, allocations: 1.564 MB / 0.5196 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002749/0.4097, allocations: 205.3 kB / 0.5198 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.4119, allocations: 1.41 MB / 0.5212 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001121/0.412, allocations: 35.92 kB / 0.5212 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.4121, allocations: 0 / 0.5212 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.4121, allocations: 7.984 kB / 0.5212 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007442/0.4195, allocations: 4.778 MB / 0.5259 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.599e-05/0.4196, allocations: 4 kB / 0.5259 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/0.4203, allocations: 183.8 kB / 0.5261 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.078e-05/0.4204, allocations: 20.22 kB / 0.5261 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.356e-05/0.4204, allocations: 24 kB / 0.5261 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.521e-05/0.4205, allocations: 11.98 kB / 0.5261 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.4205, allocations: 15.88 kB / 0.5261 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003285/0.4238, allocations: 2.346 MB / 0.5284 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/0.4244, allocations: 306.4 kB / 0.5287 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004252/0.4248, allocations: 31.94 kB / 0.5288 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000869/0.4257, allocations: 43.95 kB / 0.5288 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.4259, allocations: 76.47 kB / 0.5289 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.875e-05/0.426, allocations: 39.98 kB / 0.5289 GB, free: 3.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002806/0.4288, allocations: 1.636 MB / 0.5305 GB, free: 1.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4288, allocations: 0 / 0.5305 GB, free: 1.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003192/0.432, allocations: 0.6344 MB / 0.5311 GB, free: 0.8359 MB / 398.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 (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.003508/0.4355, allocations: 2.987 MB / 0.534 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003896/0.4394, allocations: 2.591 MB / 0.5366 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.4394, allocations: 4 kB / 0.5366 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000841/0.4403, allocations: 0.6385 MB / 0.5372 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.4419, allocations: 351.8 kB / 0.5375 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03278/0.4747, allocations: 19.88 MB / 0.557 GB, free: 4.211 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004117/0.4789, allocations: 2.564 MB / 0.5595 GB, free: 1.621 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003109/0.482, allocations: 1.121 MB / 0.5606 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001921/0.484, allocations: 1.249 MB / 0.5618 GB, free: 15.25 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.484, allocations: 0 / 0.5618 GB, free: 15.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2268/0.7108, allocations: 48.49 MB / 0.6091 GB, free: 114.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001182/0.711, allocations: 175.4 kB / 0.6093 GB, free: 114.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.456/3.167, allocations: 0 / 0.6093 GB, free: 114.3 MB / 446.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/linux/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) Environment - environmentSimulation: