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.001215/0.001215, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001271/0.001271, allocations: 177.3 kB / 15.94 MB, free: 228 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.47/1.47, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1972/0.1972, allocations: 9.095 MB / 300.1 MB, free: 2.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003433, allocations: 8 kB / 363.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 52.43 MB / 415.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.2604/0.3886, allocations: 16.47 MB / 432 MB, free: 34.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.3988, allocations: 4.551 MB / 436.5 MB, free: 32.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003303/0.4022, allocations: 66.66 kB / 436.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00204/0.4042, allocations: 0.7713 MB / 437.4 MB, free: 32.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007762/0.412, allocations: 2.431 MB / 439.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009146/0.413, allocations: 100.6 kB / 439.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00238/0.4154, allocations: 1.364 MB / 441.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009043/0.4163, allocations: 0.7256 MB / 442 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006052/0.4169, allocations: 0.6381 MB / 442.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008425/0.4178, allocations: 0.9353 MB / 443.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001882/0.418, allocations: 127.1 kB / 443.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.419, allocations: 0.6349 MB / 444.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006724/0.4197, allocations: 1.029 MB / 445.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004322/0.4202, allocations: 0.6331 MB / 446 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003021/0.4232, allocations: 3.634 MB / 449.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4232, allocations: 3.938 kB / 449.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4232, allocations: 0 / 449.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000105/0.4233, allocations: 0 / 449.6 MB, free: 28.38 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.006497/0.4298, allocations: 2.703 MB / 452.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/0.4299, allocations: 13.03 kB / 452.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008352/0.4308, allocations: 0.5396 MB / 452.9 MB, free: 26.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007615/0.4384, allocations: 2.17 MB / 455 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/0.4421, allocations: 1.276 MB / 456.3 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.4423, allocations: 143.3 kB / 456.5 MB, free: 25.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006926/0.443, allocations: 185.1 kB / 456.6 MB, free: 25.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/0.4542, allocations: 8.067 MB / 464.7 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.185e-05/0.4544, allocations: 19.38 kB / 464.7 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003084/0.4547, allocations: 88.3 kB / 464.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003667/0.4584, allocations: 2.009 MB / 466.8 MB, free: 21.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.4759, allocations: 7.145 MB / 474 MB, free: 18.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03941/0.5154, allocations: 24.15 MB / 498.1 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005001/0.5204, allocations: 2.152 MB / 0.4885 GB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/0.5224, allocations: 1.648 MB / 0.4902 GB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/0.5225, allocations: 47.56 kB / 0.4902 GB, free: 12.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=135): time 6.572e-06/0.5225, allocations: 0 / 0.4902 GB, free: 12.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01349/0.536, allocations: 5.893 MB / 0.496 GB, free: 6.078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/0.5361, allocations: 86.11 kB / 0.496 GB, free: 5.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003603/0.5397, allocations: 2.472 MB / 0.4985 GB, free: 3.469 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001972/0.5399, allocations: 41.7 kB / 0.4985 GB, free: 3.422 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.5416, allocations: 2.074 MB / 0.5005 GB, free: 1.316 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006566/0.5422, allocations: 0.5321 MB / 0.501 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.5424, allocations: 68 kB / 0.5011 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002893/0.5427, allocations: 470.3 kB / 0.5015 GB, free: 252 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.5447, allocations: 1.179 MB / 0.5027 GB, free: 15.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003233/0.548, allocations: 3.332 MB / 0.506 GB, free: 10.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/0.5509, allocations: 1.984 MB / 0.5079 GB, free: 8.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.763e-05/0.5509, allocations: 20 kB / 0.5079 GB, free: 8.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.007502/0.5585, allocations: 4.465 MB / 0.5123 GB, free: 4.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.323e-05/0.5585, allocations: 41.34 kB / 0.5123 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.35e-05/0.5586, allocations: 80.06 kB / 0.5124 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/0.5588, allocations: 112 kB / 0.5125 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/0.5616, allocations: 0.8539 MB / 0.5133 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001195/0.5617, allocations: 151.4 kB / 0.5135 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002626/0.5644, allocations: 179.9 kB / 0.5136 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003555/0.5648, allocations: 228 kB / 0.5139 GB, free: 2.566 MB / 382.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 (467): * Single equations (assignments): 462 * 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.002785/0.5675, allocations: 1.587 MB / 0.5154 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003841/0.5679, allocations: 213.3 kB / 0.5156 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002796/0.5707, allocations: 1.766 MB / 0.5173 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001335/0.5709, allocations: 31.98 kB / 0.5174 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5709, allocations: 0 / 0.5174 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.5709, allocations: 3.984 kB / 0.5174 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009287/0.5802, allocations: 5.677 MB / 0.5229 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.5803, allocations: 12.22 kB / 0.5229 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009222/0.5812, allocations: 219.6 kB / 0.5231 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-05/0.5812, allocations: 16 kB / 0.5232 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.239e-05/0.5813, allocations: 39.98 kB / 0.5232 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-05/0.5813, allocations: 15.94 kB / 0.5232 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.5814, allocations: 11.94 kB / 0.5232 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004687/0.586, allocations: 3.396 MB / 0.5265 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008588/0.5869, allocations: 314.3 kB / 0.5268 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/0.5872, allocations: 35.98 kB / 0.5269 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008167/0.588, allocations: 55.94 kB / 0.5269 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.5882, allocations: 96.34 kB / 0.527 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.724e-05/0.5883, allocations: 48 kB / 0.5271 GB, free: 4.406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002913/0.5912, allocations: 1.604 MB / 0.5286 GB, free: 2.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5912, allocations: 0 / 0.5286 GB, free: 2.785 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003433/0.5947, allocations: 0.6212 MB / 0.5292 GB, free: 2.164 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * 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 (113): * Single equations (assignments): 108 * 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.005074/0.5997, allocations: 6.293 MB / 0.5354 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004336/0.6041, allocations: 2.713 MB / 0.538 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.6041, allocations: 0.875 kB / 0.538 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.6051, allocations: 0.7357 MB / 0.5387 GB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.6068, allocations: 347.7 kB / 0.5391 GB, free: 7.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2739/0.8807, allocations: 72.01 MB / 0.6094 GB, free: 86.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002589/0.8833, allocations: 2.63 MB / 0.612 GB, free: 85.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003036/0.8864, allocations: 1.17 MB / 0.6131 GB, free: 85.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00246/0.8889, allocations: 1.262 MB / 0.6143 GB, free: 85.36 MB / 446.1 MB Notification: Performance of SimCode: time 2.335e-06/0.8889, allocations: 0 / 0.6143 GB, free: 85.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09046/0.9794, allocations: 49.09 MB / 0.6623 GB, free: 62.36 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.9796, allocations: 173.8 kB / 0.6625 GB, free: 62.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.941/3.921, allocations: 8 kB / 0.6625 GB, free: 62.11 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: