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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.004147/0.004147, allocations: 170.6 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.187/1.187, allocations: 223.2 MB / 239 MB, free: 1.805 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008137/0.0008137, allocations: 99.69 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04021/0.04021, allocations: 8.938 MB / 350.2 MB, free: 2.086 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 8.406 kB / 413.2 MB, free: 88.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07655/0.07687, allocations: 52.39 MB / 465.6 MB, free: 41.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2644/0.3413, allocations: 88.59 MB / 0.5412 GB, free: 16.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.3415, allocations: 77.28 kB / 0.5413 GB, free: 16.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1286/0.4701, allocations: 62.05 MB / 0.6019 GB, free: 13.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4701, allocations: 4 kB / 0.6019 GB, free: 13.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.101e-05/0.4702, allocations: 48 kB / 0.6019 GB, free: 13.26 MB / 378.7 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.007194/0.4774, allocations: 2.821 MB / 0.6047 GB, free: 10.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.4775, allocations: 12.02 kB / 0.6047 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001477/0.4789, allocations: 0.5851 MB / 0.6053 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00834/0.4873, allocations: 1.968 MB / 0.6072 GB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003616/0.4909, allocations: 1.667 MB / 0.6088 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.4911, allocations: 230 kB / 0.609 GB, free: 6.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005761/0.4917, allocations: 298 kB / 0.6093 GB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0112/0.5029, allocations: 7.607 MB / 0.6167 GB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.907e-05/0.503, allocations: 18.12 kB / 0.6168 GB, free: 1.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004073/0.5034, allocations: 130.3 kB / 0.6169 GB, free: 1.039 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001241/0.5046, allocations: 0.9046 MB / 0.6178 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.5162, allocations: 7.039 MB / 0.6246 GB, free: 9.254 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0314/0.5476, allocations: 24.14 MB / 0.6482 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004074/0.5517, allocations: 2.149 MB / 0.6503 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005642/0.5574, allocations: 4.005 MB / 0.6542 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.5574, allocations: 43.52 kB / 0.6543 GB, free: 10.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=114): time 2.725e-06/0.5574, allocations: 0 / 0.6543 GB, free: 10.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=117): time 0.008678/0.5661, allocations: 4.75 MB / 0.6589 GB, free: 5.227 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.5662, allocations: 64.41 kB / 0.659 GB, free: 5.148 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/0.5694, allocations: 2.316 MB / 0.6612 GB, free: 2.805 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.048e-05/0.5694, allocations: 41.7 kB / 0.6613 GB, free: 2.758 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.5706, allocations: 2.111 MB / 0.6633 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.571, allocations: 460 kB / 0.6638 GB, free: 200 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.5711, allocations: 78.27 kB / 0.6638 GB, free: 124 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002396/0.5714, allocations: 466.1 kB / 0.6643 GB, free: 15.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.5732, allocations: 1.143 MB / 0.6654 GB, free: 14.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003081/0.5763, allocations: 3.276 MB / 0.6686 GB, free: 10.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002613/0.5789, allocations: 1.941 MB / 0.6705 GB, free: 8.242 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.752e-05/0.5789, allocations: 20 kB / 0.6705 GB, free: 8.223 MB / 442.7 MB Notification: Performance of matching and sorting (n=486) (initialization): time 0.006199/0.5851, allocations: 4.378 MB / 0.6748 GB, free: 3.848 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.679e-05/0.5852, allocations: 40.05 kB / 0.6748 GB, free: 3.809 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.264e-05/0.5853, allocations: 84 kB / 0.6749 GB, free: 3.727 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001018/0.5854, allocations: 112 kB / 0.675 GB, free: 3.617 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002407/0.5878, allocations: 0.8383 MB / 0.6758 GB, free: 2.777 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001082/0.5879, allocations: 151.4 kB / 0.676 GB, free: 2.629 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.5899, allocations: 184.3 kB / 0.6762 GB, free: 2.449 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002743/0.5902, allocations: 224 kB / 0.6764 GB, free: 2.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 344 * 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 (458): * Single equations (assignments): 453 * 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.002222/0.5924, allocations: 1.571 MB / 0.6779 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.5927, allocations: 205.3 kB / 0.6781 GB, free: 460 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.5948, allocations: 1.367 MB / 0.6794 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001241/0.595, allocations: 23.98 kB / 0.6795 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.595, allocations: 0 / 0.6795 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.595, allocations: 7.969 kB / 0.6795 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007937/0.603, allocations: 4.745 MB / 0.6841 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.603, allocations: 7.953 kB / 0.6841 GB, free: 10.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008141/0.6038, allocations: 179.7 kB / 0.6843 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.318e-05/0.6038, allocations: 12.69 kB / 0.6843 GB, free: 9.984 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.776e-05/0.6039, allocations: 30.25 kB / 0.6843 GB, free: 9.957 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-05/0.6039, allocations: 12 kB / 0.6843 GB, free: 9.945 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.6039, allocations: 7.938 kB / 0.6843 GB, free: 9.938 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003352/0.6073, allocations: 2.699 MB / 0.687 GB, free: 6.992 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006123/0.6079, allocations: 306.4 kB / 0.6873 GB, free: 6.672 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/0.6082, allocations: 23.98 kB / 0.6873 GB, free: 6.648 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007484/0.6089, allocations: 51.91 kB / 0.6873 GB, free: 6.598 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.609, allocations: 74.48 kB / 0.6874 GB, free: 6.527 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.909e-05/0.6091, allocations: 47.92 kB / 0.6874 GB, free: 6.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002377/0.6115, allocations: 1.632 MB / 0.689 GB, free: 4.832 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6115, allocations: 0 / 0.689 GB, free: 4.832 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002417/0.6139, allocations: 0.6326 MB / 0.6897 GB, free: 4.203 MB / 458.7 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 (90): * Single equations (assignments): 85 * 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.1936/0.8076, allocations: 4.722 MB / 0.6943 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00582/0.8134, allocations: 2.565 MB / 0.6968 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.8135, allocations: 4.844 kB / 0.6968 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.8147, allocations: 0.6238 MB / 0.6974 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.8167, allocations: 345.4 kB / 0.6977 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04118/0.8579, allocations: 71.46 MB / 0.7675 GB, free: 57.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/0.8612, allocations: 2.616 MB / 0.7701 GB, free: 56.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002948/0.8641, allocations: 1.115 MB / 0.7711 GB, free: 56.37 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/0.8657, allocations: 1.247 MB / 0.7724 GB, free: 56.36 MB / 458.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8658, allocations: 1.641 kB / 0.7724 GB, free: 56.36 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06405/0.9298, allocations: 48.54 MB / 0.8198 GB, free: 35.25 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/0.93, allocations: 173 kB / 0.8199 GB, free: 35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/3.723, allocations: 4 kB / 0.8199 GB, free: 35 MB / 458.7 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)