Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",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.004934/0.004934, allocations: 170.8 kB / 15.11 MB, free: 5.984 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.232/1.232, allocations: 223.2 MB / 239 MB, free: 1.801 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.000829/0.000829, allocations: 101.6 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03952/0.03952, allocations: 8.937 MB / 350.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003049/0.0003049, allocations: 8.625 kB / 413.2 MB, free: 88.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07059/0.0709, allocations: 52.39 MB / 465.6 MB, free: 41.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2769/0.3479, allocations: 95.94 MB / 0.5484 GB, free: 16.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.3482, allocations: 82.05 kB / 0.5485 GB, free: 16.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1059/0.4541, allocations: 51.12 MB / 0.5984 GB, free: 15.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4541, allocations: 3.875 kB / 0.5984 GB, free: 15.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001259/0.4543, allocations: 66.56 kB / 0.5984 GB, free: 15.66 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.009967/0.4643, allocations: 3.03 MB / 0.6014 GB, free: 13.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.4643, allocations: 12.03 kB / 0.6014 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001197/0.4655, allocations: 456.9 kB / 0.6018 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009791/0.4665, allocations: 312.9 kB / 0.6021 GB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002412/0.4689, allocations: 1.194 MB / 0.6033 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.4691, allocations: 222.2 kB / 0.6035 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006484/0.4698, allocations: 301 kB / 0.6038 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009228/0.479, allocations: 4.834 MB / 0.6085 GB, free: 7.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001465/0.4792, allocations: 39.56 kB / 0.6086 GB, free: 7.406 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004047/0.4796, allocations: 137.2 kB / 0.6087 GB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004829/0.4801, allocations: 343.3 kB / 0.609 GB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00754/0.4876, allocations: 3.629 MB / 0.6126 GB, free: 4.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02538/0.5131, allocations: 21.75 MB / 0.6338 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005046/0.5181, allocations: 1.901 MB / 0.6357 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007564/0.5257, allocations: 5.498 MB / 0.641 GB, free: 7.711 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.5258, allocations: 43.56 kB / 0.6411 GB, free: 7.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 4.348e-06/0.5258, allocations: 0 / 0.6411 GB, free: 7.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.02293/0.5487, allocations: 9.309 MB / 0.6502 GB, free: 14.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.5488, allocations: 68.72 kB / 0.6502 GB, free: 14.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002887/0.5517, allocations: 1.575 MB / 0.6518 GB, free: 12.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/0.5519, allocations: 49.7 kB / 0.6518 GB, free: 12.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.5532, allocations: 1.732 MB / 0.6535 GB, free: 10.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005416/0.5537, allocations: 0.5359 MB / 0.654 GB, free: 10.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.5539, allocations: 80 kB / 0.6541 GB, free: 10.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003706/0.5543, allocations: 0.4989 MB / 0.6546 GB, free: 9.664 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/0.5562, allocations: 1.186 MB / 0.6558 GB, free: 8.477 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/0.5596, allocations: 3.363 MB / 0.659 GB, free: 4.031 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002851/0.5624, allocations: 1.868 MB / 0.6609 GB, free: 2.164 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.232e-05/0.5625, allocations: 24 kB / 0.6609 GB, free: 2.141 MB / 426.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.00763/0.5701, allocations: 4.743 MB / 0.6655 GB, free: 13.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.856e-05/0.5702, allocations: 39.98 kB / 0.6656 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.5703, allocations: 80 kB / 0.6656 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009026/0.5713, allocations: 368.8 kB / 0.666 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002886/0.5742, allocations: 0.9043 MB / 0.6669 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005128/0.5793, allocations: 3.967 MB / 0.6707 GB, free: 7.891 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/0.5819, allocations: 207.6 kB / 0.6709 GB, free: 7.688 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005484/0.5825, allocations: 236 kB / 0.6712 GB, free: 7.457 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (466): * Single equations (assignments): 465 * Array equations: 0 * 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 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002083/0.5846, allocations: 0.9314 MB / 0.6721 GB, free: 6.516 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.585, allocations: 189.6 kB / 0.6723 GB, free: 6.328 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004317/0.5893, allocations: 2.592 MB / 0.6748 GB, free: 3.719 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.5893, allocations: 12 kB / 0.6748 GB, free: 3.707 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5893, allocations: 4 kB / 0.6748 GB, free: 3.703 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.5893, allocations: 7.969 kB / 0.6748 GB, free: 3.695 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.6017, allocations: 6.347 MB / 0.681 GB, free: 13.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.6017, allocations: 4 kB / 0.681 GB, free: 13.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.6028, allocations: 271.6 kB / 0.6813 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006725/0.6035, allocations: 259.4 kB / 0.6815 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.6036, allocations: 32.19 kB / 0.6816 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00401/0.6077, allocations: 3.272 MB / 0.6847 GB, free: 9.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.6077, allocations: 7.938 kB / 0.6848 GB, free: 9.262 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005475/0.6132, allocations: 4.136 MB / 0.6888 GB, free: 4.977 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005862/0.6138, allocations: 246.7 kB / 0.689 GB, free: 4.715 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003543/0.6142, allocations: 28 kB / 0.6891 GB, free: 4.688 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009415/0.6151, allocations: 111.8 kB / 0.6892 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.6153, allocations: 97.12 kB / 0.6893 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.6154, allocations: 32 kB / 0.6893 GB, free: 4.449 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001838/0.6172, allocations: 1.069 MB / 0.6903 GB, free: 3.391 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6173, allocations: 0 / 0.6903 GB, free: 3.391 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002752/0.62, allocations: 0.6406 MB / 0.691 GB, free: 2.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (123): * Single equations (assignments): 122 * Array equations: 0 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1777/0.7977, allocations: 5.701 MB / 0.6965 GB, free: 116.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004482/0.8022, allocations: 3.267 MB / 0.6997 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.8023, allocations: 3.906 kB / 0.6997 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/0.8037, allocations: 1.266 MB / 0.701 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.8053, allocations: 382.6 kB / 0.7013 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03076/0.8361, allocations: 69.89 MB / 0.7696 GB, free: 55.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/0.8381, allocations: 1.878 MB / 0.7714 GB, free: 54.62 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002204/0.8403, allocations: 0.8663 MB / 0.7723 GB, free: 54.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/0.8414, allocations: 1.052 MB / 0.7733 GB, free: 54.54 MB / 458.7 MB Notification: Performance of SimCode: time 7.62e-07/0.8414, allocations: 0 / 0.7733 GB, free: 54.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05835/0.8998, allocations: 45.07 MB / 0.8173 GB, free: 37.68 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001341/0.8999, allocations: 185.4 kB / 0.8175 GB, free: 37.44 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.77/3.67, allocations: 0 / 0.8175 GB, free: 37.44 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)