Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",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.00533/0.005329, allocations: 170 kB / 15.11 MB, free: 6.039 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.19/1.19, allocations: 223.2 MB / 239 MB, free: 1.812 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.000889/0.0008887, allocations: 111.3 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.03882/0.03882, allocations: 8.937 MB / 350.2 MB, free: 2.078 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002731/0.0002731, allocations: 7.531 kB / 413.2 MB, free: 88.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07176/0.07205, allocations: 52.4 MB / 465.6 MB, free: 41.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2668/0.3389, allocations: 90.39 MB / 0.543 GB, free: 16.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.3391, allocations: 75.39 kB / 0.543 GB, free: 16.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1438/0.4829, allocations: 68.56 MB / 0.61 GB, free: 6.348 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.483, allocations: 8 kB / 0.61 GB, free: 6.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001054/0.4831, allocations: 52 kB / 0.61 GB, free: 6.289 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.008188/0.4913, allocations: 3.104 MB / 0.6131 GB, free: 3.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4913, allocations: 8.031 kB / 0.6131 GB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0018/0.4931, allocations: 0.6429 MB / 0.6137 GB, free: 2.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008289/0.5014, allocations: 2.023 MB / 0.6157 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003919/0.5054, allocations: 1.819 MB / 0.6175 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.5056, allocations: 253.7 kB / 0.6177 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00063/0.5062, allocations: 339.3 kB / 0.618 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01164/0.5178, allocations: 8.192 MB / 0.626 GB, free: 8.043 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.952e-05/0.5179, allocations: 23.81 kB / 0.626 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004429/0.5184, allocations: 151.9 kB / 0.6262 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001258/0.5197, allocations: 0.9629 MB / 0.6271 GB, free: 6.906 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.5309, allocations: 7.405 MB / 0.6344 GB, free: 15.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0314/0.5623, allocations: 26.92 MB / 0.6607 GB, free: 3.984 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003952/0.5663, allocations: 2.141 MB / 0.6627 GB, free: 1.715 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008116/0.5744, allocations: 5.473 MB / 0.6681 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.5744, allocations: 39.56 kB / 0.6681 GB, free: 11.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=121): time 3.126e-06/0.5745, allocations: 0 / 0.6681 GB, free: 11.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=129): time 0.01072/0.5852, allocations: 6.198 MB / 0.6742 GB, free: 5.406 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.5852, allocations: 68.41 kB / 0.6742 GB, free: 5.328 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003517/0.5888, allocations: 2.583 MB / 0.6768 GB, free: 2.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.768e-05/0.5889, allocations: 45.7 kB / 0.6768 GB, free: 2.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.5902, allocations: 2.341 MB / 0.6791 GB, free: 312 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.5906, allocations: 0.4937 MB / 0.6796 GB, free: 15.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.5907, allocations: 83.98 kB / 0.6797 GB, free: 15.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002666/0.591, allocations: 487.1 kB / 0.6801 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001908/0.5929, allocations: 1.261 MB / 0.6814 GB, free: 13.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003352/0.5963, allocations: 3.677 MB / 0.6849 GB, free: 9.066 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002819/0.5991, allocations: 2.154 MB / 0.687 GB, free: 6.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.86e-05/0.5991, allocations: 24 kB / 0.6871 GB, free: 6.887 MB / 458.7 MB Notification: Performance of matching and sorting (n=543) (initialization): time 0.007608/0.6068, allocations: 4.946 MB / 0.6919 GB, free: 1.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.6068, allocations: 44.2 kB / 0.6919 GB, free: 1.887 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.381e-05/0.6069, allocations: 88 kB / 0.692 GB, free: 1.801 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003588/0.6073, allocations: 208.8 kB / 0.6922 GB, free: 1.594 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002512/0.6098, allocations: 0.924 MB / 0.6931 GB, free: 0.668 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1744/0.7842, allocations: 2.08 MB / 0.6952 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003799/0.788, allocations: 208.7 kB / 0.6954 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005534/0.7886, allocations: 250.6 kB / 0.6956 GB, free: 110.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 391 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (508): * Single equations (assignments): 502 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002605/0.7912, allocations: 1.694 MB / 0.6973 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003066/0.7915, allocations: 236.5 kB / 0.6975 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.7939, allocations: 1.608 MB / 0.699 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001192/0.794, allocations: 26.08 kB / 0.6991 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.7941, allocations: 3.938 kB / 0.6991 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.7941, allocations: 7.391 kB / 0.6991 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007126/0.8012, allocations: 5.202 MB / 0.7042 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.8013, allocations: 6.234 kB / 0.7042 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007387/0.802, allocations: 178.7 kB / 0.7043 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.8022, allocations: 76 kB / 0.7044 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.894e-05/0.8023, allocations: 28.16 kB / 0.7044 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.8035, allocations: 1.781 MB / 0.7062 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.8036, allocations: 6.938 kB / 0.7062 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/0.8072, allocations: 2.863 MB / 0.709 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006971/0.8079, allocations: 330.6 kB / 0.7093 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.8081, allocations: 21.64 kB / 0.7093 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007905/0.8089, allocations: 55.45 kB / 0.7094 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.809, allocations: 73.81 kB / 0.7094 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.458e-05/0.8091, allocations: 41.67 kB / 0.7095 GB, free: 107.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002791/0.8119, allocations: 1.822 MB / 0.7113 GB, free: 107.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8119, allocations: 0 / 0.7113 GB, free: 107.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002749/0.8147, allocations: 0.7032 MB / 0.7119 GB, free: 107.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (98): * Single equations (assignments): 92 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003669/0.8184, allocations: 4.38 MB / 0.7162 GB, free: 105.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005143/0.8235, allocations: 3.029 MB / 0.7192 GB, free: 105.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.8236, allocations: 1.375 kB / 0.7192 GB, free: 105.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.8248, allocations: 0.8409 MB / 0.72 GB, free: 105 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.8266, allocations: 366 kB / 0.7204 GB, free: 105 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03959/0.8662, allocations: 80.56 MB / 0.799 GB, free: 34.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00231/0.8685, allocations: 2.795 MB / 0.8018 GB, free: 33.28 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002782/0.8713, allocations: 1.206 MB / 0.8029 GB, free: 33.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001469/0.8728, allocations: 1.421 MB / 0.8043 GB, free: 32.02 MB / 458.7 MB Notification: Performance of SimCode: time 9.02e-07/0.8728, allocations: 0 / 0.8043 GB, free: 32.02 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07222/0.945, allocations: 53.71 MB / 0.8568 GB, free: 13.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/0.9453, allocations: 184.6 kB / 0.857 GB, free: 12.96 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.986/3.931, allocations: 7.922 kB / 0.857 GB, free: 12.95 MB / 474.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)