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.001023/0.001023, allocations: 175.2 kB / 12.73 MB, free: 2.59 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.377/1.377, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009243/0.0009246, allocations: 89.75 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0416/0.0416, allocations: 8.828 MB / 345.3 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.183e-05/3.185e-05, allocations: 4 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 52.39 MB / 458 MB, free: 8.945 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4804, allocations: 90.33 MB / 0.5355 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.4807, allocations: 73.16 kB / 0.5356 GB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1703/0.651, allocations: 68.61 MB / 0.6026 GB, free: 12.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6511, allocations: 0 / 0.6026 GB, free: 12.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001176/0.6512, allocations: 59.94 kB / 0.6027 GB, free: 12.73 MB / 426.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.009749/0.661, allocations: 2.995 MB / 0.6056 GB, free: 9.672 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.661, allocations: 12.03 kB / 0.6056 GB, free: 9.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00271/0.6638, allocations: 0.6514 MB / 0.6062 GB, free: 9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.6738, allocations: 2.015 MB / 0.6082 GB, free: 6.977 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005653/0.6796, allocations: 1.825 MB / 0.61 GB, free: 5.105 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/0.6799, allocations: 258.5 kB / 0.6102 GB, free: 4.852 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001795/0.6817, allocations: 331.8 kB / 0.6106 GB, free: 4.527 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01842/0.7001, allocations: 8.108 MB / 0.6185 GB, free: 12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/0.7003, allocations: 23.81 kB / 0.6185 GB, free: 11.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007107/0.701, allocations: 151.9 kB / 0.6186 GB, free: 11.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001445/0.7024, allocations: 0.959 MB / 0.6196 GB, free: 10.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01455/0.717, allocations: 7.261 MB / 0.6267 GB, free: 3.598 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3083/1.025, allocations: 26.92 MB / 0.653 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004704/1.03, allocations: 2.105 MB / 0.655 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/1.032, allocations: 0.9025 MB / 0.6559 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009455/1.041, allocations: 5.5 MB / 0.6613 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/1.041, allocations: 43.98 kB / 0.6613 GB, free: 101.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 4.538e-06/1.041, allocations: 0 / 0.6613 GB, free: 101.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=135): time 0.01251/1.054, allocations: 6.079 MB / 0.6672 GB, free: 100.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/1.054, allocations: 67.45 kB / 0.6673 GB, free: 100 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004753/1.059, allocations: 2.556 MB / 0.6698 GB, free: 99.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/1.059, allocations: 45.03 kB / 0.6698 GB, free: 99.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/1.06, allocations: 2.347 MB / 0.6721 GB, free: 98.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004355/1.061, allocations: 0.5123 MB / 0.6726 GB, free: 98.16 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/1.061, allocations: 80.44 kB / 0.6727 GB, free: 98.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/1.061, allocations: 486.7 kB / 0.6732 GB, free: 97.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/1.063, allocations: 1.251 MB / 0.6744 GB, free: 97.83 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002524/1.065, allocations: 3.669 MB / 0.678 GB, free: 94.69 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002688/1.068, allocations: 2.163 MB / 0.6801 GB, free: 94.67 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.477e-05/1.068, allocations: 22.38 kB / 0.6801 GB, free: 94.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=549) (initialization): time 0.009142/1.077, allocations: 5.417 MB / 0.6854 GB, free: 93.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.76e-05/1.077, allocations: 46.69 kB / 0.6854 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.751e-05/1.077, allocations: 83.34 kB / 0.6855 GB, free: 93.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006203/1.078, allocations: 360.4 kB / 0.6859 GB, free: 93.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/1.081, allocations: 0.9061 MB / 0.6868 GB, free: 93.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004788/1.086, allocations: 8.226 MB / 0.6948 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003451/1.089, allocations: 204.6 kB / 0.695 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004776/1.09, allocations: 257.3 kB / 0.6952 GB, free: 87.05 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (502): * Single equations (assignments): 492 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 12,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000563/1.09, allocations: 433.1 kB / 0.6956 GB, free: 86.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000309/1.091, allocations: 234.1 kB / 0.6959 GB, free: 86.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002701/1.093, allocations: 2.125 MB / 0.6979 GB, free: 85.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001231/1.093, allocations: 31.72 kB / 0.698 GB, free: 85.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/1.093, allocations: 7.141 kB / 0.698 GB, free: 85.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/1.093, allocations: 9.781 kB / 0.698 GB, free: 85.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008866/1.102, allocations: 5.633 MB / 0.7035 GB, free: 83.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/1.102, allocations: 3.688 kB / 0.7035 GB, free: 83.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006934/1.103, allocations: 175.5 kB / 0.7037 GB, free: 83.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003188/1.103, allocations: 140.3 kB / 0.7038 GB, free: 83.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.032e-05/1.104, allocations: 26.97 kB / 0.7038 GB, free: 83.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/1.106, allocations: 4.668 MB / 0.7084 GB, free: 79.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.106, allocations: 3.5 kB / 0.7084 GB, free: 79.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003284/1.109, allocations: 3.119 MB / 0.7114 GB, free: 77.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006724/1.11, allocations: 331.8 kB / 0.7117 GB, free: 77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002418/1.11, allocations: 20.12 kB / 0.7118 GB, free: 76.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008163/1.111, allocations: 59.52 kB / 0.7118 GB, free: 76.97 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/1.111, allocations: 78.88 kB / 0.7119 GB, free: 76.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/1.111, allocations: 41.56 kB / 0.7119 GB, free: 76.94 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002478/1.114, allocations: 1.79 MB / 0.7137 GB, free: 76.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.114, allocations: 0 / 0.7137 GB, free: 76.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003446/1.117, allocations: 0.7247 MB / 0.7144 GB, free: 76.17 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003588/1.121, allocations: 4.613 MB / 0.7189 GB, free: 73.04 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00616/1.127, allocations: 3.526 MB / 0.7223 GB, free: 71.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/1.127, allocations: 0 / 0.7223 GB, free: 71.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/1.129, allocations: 1.061 MB / 0.7234 GB, free: 70.84 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/1.131, allocations: 369.3 kB / 0.7237 GB, free: 70.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/1.143, allocations: 6.501 MB / 0.7301 GB, free: 68.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002285/1.146, allocations: 2.817 MB / 0.7328 GB, free: 66.27 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003034/1.149, allocations: 1.208 MB / 0.734 GB, free: 65.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001801/1.151, allocations: 1.424 MB / 0.7354 GB, free: 64.19 MB / 458.7 MB Notification: Performance of SimCode: time 9.91e-07/1.151, allocations: 0 / 0.7354 GB, free: 64.19 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08011/1.231, allocations: 55.27 MB / 0.7894 GB, free: 16.02 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001336/1.231, allocations: 154.8 kB / 0.7895 GB, free: 15.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.413/4.644, allocations: 0 / 0.7895 GB, free: 15.8 MB / 458.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)