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.005887/0.005887, allocations: 98.02 kB / 15.73 MB, free: 6.055 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.001301/0.001301, allocations: 193.6 kB / 16.68 MB, free: 5.969 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04806/0.04806, allocations: 9.113 MB / 299.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 63.89 kB / 414.1 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09381, allocations: 51.45 MB / 465.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.009743/0.1036, allocations: 8.182 MB / 473.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005127/0.1088, allocations: 2.514 MB / 476.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009525/0.1097, allocations: 28 kB / 476.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008172/0.1106, allocations: 353.7 kB / 476.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002815/0.1134, allocations: 1.319 MB / 478 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.1139, allocations: 119.7 kB / 478.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003232/0.1171, allocations: 2.452 MB / 480.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.1184, allocations: 0.8054 MB / 481.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.1195, allocations: 0.8559 MB / 482.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.1212, allocations: 1.261 MB / 483.5 MB, free: 172 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004062/0.1216, allocations: 220 kB / 483.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.1232, allocations: 0.8074 MB / 484.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001241/0.1245, allocations: 1.219 MB / 485.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001538/0.126, allocations: 1.534 MB / 487.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00623/0.1323, allocations: 4.976 MB / 492.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.1323, allocations: 4 kB / 492.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1323, allocations: 0 / 492.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.1324, allocations: 0 / 492.2 MB, free: 7.379 MB / 366.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.006659/0.1391, allocations: 3.349 MB / 495.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1392, allocations: 8.031 kB / 495.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006591/0.1398, allocations: 0.543 MB / 496.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00665/0.1465, allocations: 1.785 MB / 497.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.1489, allocations: 1.302 MB / 499.2 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.1491, allocations: 143.8 kB / 499.3 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003724/0.1494, allocations: 188.2 kB / 499.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.1615, allocations: 8.061 MB / 0.4957 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.027e-05/0.1616, allocations: 15.88 kB / 0.4957 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002863/0.1619, allocations: 91.86 kB / 0.4958 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003397/0.1653, allocations: 2.004 MB / 0.4978 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1984/0.3637, allocations: 7.132 MB / 0.5047 GB, free: 39.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03007/0.3938, allocations: 24.12 MB / 0.5283 GB, free: 23.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003754/0.3976, allocations: 2.156 MB / 0.5304 GB, free: 22.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009799/0.3986, allocations: 0.7209 MB / 0.5311 GB, free: 22.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004158/0.4028, allocations: 3.991 MB / 0.535 GB, free: 18.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.4028, allocations: 50.62 kB / 0.535 GB, free: 18.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 2.896e-06/0.4028, allocations: 0 / 0.535 GB, free: 18.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.00781/0.4106, allocations: 4.433 MB / 0.5394 GB, free: 16.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.4107, allocations: 60.03 kB / 0.5394 GB, free: 16.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/0.4134, allocations: 2.596 MB / 0.5419 GB, free: 15.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.64e-05/0.4135, allocations: 44.77 kB / 0.542 GB, free: 14.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007225/0.4142, allocations: 2.195 MB / 0.5441 GB, free: 13.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.4144, allocations: 479.7 kB / 0.5446 GB, free: 12.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007134/0.4152, allocations: 0.7603 MB / 0.5453 GB, free: 12.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.609e-05/0.4152, allocations: 301.1 kB / 0.5456 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.4166, allocations: 1.167 MB / 0.5468 GB, free: 10.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002078/0.4187, allocations: 3.325 MB / 0.55 GB, free: 6.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003792/0.4225, allocations: 4.783 MB / 0.5547 GB, free: 492 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.503e-05/0.4225, allocations: 27.22 kB / 0.5547 GB, free: 468 kB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.006802/0.4293, allocations: 4.426 MB / 0.559 GB, free: 12.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/0.4294, allocations: 43.94 kB / 0.5591 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.531e-05/0.4295, allocations: 76 kB / 0.5591 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001062/0.4296, allocations: 104 kB / 0.5592 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/0.432, allocations: 0.8499 MB / 0.5601 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001211/0.4322, allocations: 147.4 kB / 0.5602 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/0.4342, allocations: 179.9 kB / 0.5604 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/0.4345, allocations: 220 kB / 0.5606 GB, free: 10.43 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.002176/0.4367, allocations: 1.576 MB / 0.5621 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.437, allocations: 218.5 kB / 0.5623 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.4394, allocations: 1.417 MB / 0.5637 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001237/0.4396, allocations: 23.98 kB / 0.5637 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4396, allocations: 0 / 0.5637 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.4396, allocations: 7.984 kB / 0.5638 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007568/0.4472, allocations: 4.784 MB / 0.5684 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.4472, allocations: 4 kB / 0.5684 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009332/0.4481, allocations: 184.4 kB / 0.5686 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.4482, allocations: 12 kB / 0.5686 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.146e-05/0.4483, allocations: 31.81 kB / 0.5686 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.167e-05/0.4483, allocations: 12 kB / 0.5687 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/0.4483, allocations: 7.938 kB / 0.5687 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003393/0.4517, allocations: 2.381 MB / 0.571 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004801/0.4522, allocations: 303.7 kB / 0.5713 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002276/0.4524, allocations: 23.98 kB / 0.5713 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007002/0.4531, allocations: 51.78 kB / 0.5714 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.4532, allocations: 72.45 kB / 0.5714 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.121e-05/0.4533, allocations: 40.17 kB / 0.5715 GB, free: 15.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002402/0.4557, allocations: 1.659 MB / 0.5731 GB, free: 13.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4558, allocations: 0 / 0.5731 GB, free: 13.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002477/0.4582, allocations: 0.621 MB / 0.5737 GB, free: 12.78 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.003876/0.4621, allocations: 3.012 MB / 0.5766 GB, free: 9.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004297/0.4664, allocations: 2.634 MB / 0.5792 GB, free: 7.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4664, allocations: 0 / 0.5792 GB, free: 7.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009818/0.4674, allocations: 0.6334 MB / 0.5798 GB, free: 6.438 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.4691, allocations: 373 kB / 0.5802 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03747/0.5066, allocations: 26.28 MB / 0.6058 GB, free: 8.871 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/0.5094, allocations: 2.555 MB / 0.6083 GB, free: 6.285 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002479/0.5119, allocations: 1.113 MB / 0.6094 GB, free: 5.168 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/0.5135, allocations: 1.245 MB / 0.6106 GB, free: 3.922 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5135, allocations: 0 / 0.6106 GB, free: 3.922 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08233/0.5959, allocations: 42.07 MB / 0.6517 GB, free: 10.05 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.84, allocations: 3.781 kB / 0.6517 GB, free: 10.05 MB / 494.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)