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.0009932/0.0009934, allocations: 174.6 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.441/1.441, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0009059/0.0009058, allocations: 91.95 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.04022/0.04022, allocations: 8.829 MB / 345.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.687e-05/2.695e-05, allocations: 4 kB / 405.7 MB, free: 61.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 52.39 MB / 458.1 MB, free: 8.953 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.4763, allocations: 88.54 MB / 0.5338 GB, free: 13.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.4766, allocations: 72.78 kB / 0.5339 GB, free: 13.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1495/0.6261, allocations: 62.1 MB / 0.5945 GB, free: 5.164 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6262, allocations: 0 / 0.5945 GB, free: 5.164 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.47e-05/0.6263, allocations: 52 kB / 0.5945 GB, free: 5.113 MB / 410.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.007415/0.6337, allocations: 2.736 MB / 0.5972 GB, free: 2.316 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.6338, allocations: 8.031 kB / 0.5972 GB, free: 2.309 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001819/0.6356, allocations: 0.5859 MB / 0.5978 GB, free: 1.711 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009448/0.6451, allocations: 1.977 MB / 0.5997 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004972/0.6501, allocations: 1.661 MB / 0.6014 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.6503, allocations: 229.8 kB / 0.6016 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00137/0.6517, allocations: 291.9 kB / 0.6019 GB, free: 13.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01598/0.6677, allocations: 7.532 MB / 0.6092 GB, free: 5.598 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.6679, allocations: 23.72 kB / 0.6092 GB, free: 5.574 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006476/0.6685, allocations: 143.9 kB / 0.6094 GB, free: 5.434 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00171/0.6703, allocations: 0.896 MB / 0.6102 GB, free: 4.535 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0147/0.685, allocations: 6.923 MB / 0.617 GB, free: 13.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03589/0.7209, allocations: 24.12 MB / 0.6406 GB, free: 4.977 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004104/0.7251, allocations: 2.107 MB / 0.6426 GB, free: 2.73 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009519/0.7261, allocations: 0.6924 MB / 0.6433 GB, free: 2.035 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2501/0.9762, allocations: 3.995 MB / 0.6472 GB, free: 124.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.9762, allocations: 39.94 kB / 0.6472 GB, free: 124.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=114): time 3.817e-06/0.9763, allocations: 1.812 kB / 0.6472 GB, free: 124.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=117): time 0.00928/0.9855, allocations: 3.77 MB / 0.6509 GB, free: 124.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.9856, allocations: 61.69 kB / 0.651 GB, free: 124.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004448/0.9901, allocations: 2.283 MB / 0.6532 GB, free: 123.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.9903, allocations: 44.52 kB / 0.6532 GB, free: 123.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.992, allocations: 2.111 MB / 0.6553 GB, free: 122.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005742/0.9926, allocations: 462 kB / 0.6557 GB, free: 122.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.9928, allocations: 72.84 kB / 0.6558 GB, free: 122.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002861/0.9931, allocations: 468.9 kB / 0.6563 GB, free: 122.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002319/0.9954, allocations: 1.102 MB / 0.6573 GB, free: 122.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003184/0.9986, allocations: 3.24 MB / 0.6605 GB, free: 119.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/1.002, allocations: 1.917 MB / 0.6624 GB, free: 119.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.724e-05/1.002, allocations: 22.03 kB / 0.6624 GB, free: 119.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=486) (initialization): time 0.00883/1.011, allocations: 4.293 MB / 0.6666 GB, free: 119 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/1.011, allocations: 37.09 kB / 0.6666 GB, free: 119 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.657e-05/1.011, allocations: 79.34 kB / 0.6667 GB, free: 119 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/1.011, allocations: 112.1 kB / 0.6668 GB, free: 119 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/1.014, allocations: 0.8471 MB / 0.6676 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.078e-05/1.014, allocations: 151.2 kB / 0.6678 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/1.017, allocations: 178 kB / 0.668 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003348/1.017, allocations: 225.8 kB / 0.6682 GB, free: 118.9 MB / 458.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 () * 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.0005001/1.018, allocations: 382.6 kB / 0.6685 GB, free: 118.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/1.018, allocations: 206.8 kB / 0.6687 GB, free: 118.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002098/1.02, allocations: 1.324 MB / 0.67 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001376/1.02, allocations: 34.39 kB / 0.6701 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.02, allocations: 7.891 kB / 0.6701 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/1.02, allocations: 3.75 kB / 0.6701 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007079/1.027, allocations: 4.706 MB / 0.6747 GB, free: 117.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/1.027, allocations: 3.938 kB / 0.6747 GB, free: 117.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/1.028, allocations: 179.1 kB / 0.6748 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.31e-05/1.028, allocations: 11.56 kB / 0.6748 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.449e-05/1.028, allocations: 28.83 kB / 0.6749 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/1.028, allocations: 18.91 kB / 0.6749 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.028, allocations: 11.66 kB / 0.6749 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002515/1.031, allocations: 2.648 MB / 0.6775 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006056/1.031, allocations: 302.7 kB / 0.6778 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/1.032, allocations: 29.33 kB / 0.6778 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000745/1.032, allocations: 53.3 kB / 0.6779 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/1.033, allocations: 73.44 kB / 0.6779 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.366e-05/1.033, allocations: 45.28 kB / 0.678 GB, free: 115.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002117/1.035, allocations: 1.611 MB / 0.6795 GB, free: 115.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.035, allocations: 0 / 0.6795 GB, free: 115.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003154/1.038, allocations: 0.6283 MB / 0.6802 GB, free: 115.1 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 () * 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.003177/1.041, allocations: 4.673 MB / 0.6847 GB, free: 111.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004276/1.045, allocations: 2.513 MB / 0.6872 GB, free: 110.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/1.045, allocations: 0 / 0.6872 GB, free: 110.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006965/1.046, allocations: 0.6012 MB / 0.6878 GB, free: 110.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/1.048, allocations: 349.1 kB / 0.6881 GB, free: 110.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/1.061, allocations: 6.199 MB / 0.6941 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002253/1.063, allocations: 2.612 MB / 0.6967 GB, free: 106.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002587/1.066, allocations: 1.119 MB / 0.6978 GB, free: 106.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/1.067, allocations: 1.245 MB / 0.699 GB, free: 105.6 MB / 458.7 MB Notification: Performance of SimCode: time 8.72e-07/1.067, allocations: 0 / 0.699 GB, free: 105.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08068/1.148, allocations: 48.83 MB / 0.7467 GB, free: 69.56 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002249/1.148, allocations: 150.2 kB / 0.7468 GB, free: 69.34 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.146/4.294, allocations: 4 kB / 0.7468 GB, free: 69.33 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)