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.001222/0.001222, allocations: 174.7 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.327/1.327, 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.0009444/0.0009445, allocations: 86.67 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.04025/0.04025, allocations: 8.835 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.693e-05/2.696e-05, allocations: 4 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 52.39 MB / 458.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.5231, allocations: 95.88 MB / 0.541 GB, free: 5.941 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.5234, allocations: 71.28 kB / 0.541 GB, free: 5.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1232/0.6466, allocations: 51.12 MB / 0.5909 GB, free: 9.184 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.6467, allocations: 0 / 0.5909 GB, free: 9.184 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001262/0.6468, allocations: 71.92 kB / 0.591 GB, free: 9.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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.009663/0.6565, allocations: 2.947 MB / 0.5939 GB, free: 6.109 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.6566, allocations: 8.031 kB / 0.5939 GB, free: 6.102 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001042/0.6576, allocations: 460.2 kB / 0.5943 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007041/0.6583, allocations: 308.9 kB / 0.5946 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/0.6606, allocations: 1.189 MB / 0.5958 GB, free: 4.102 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.6607, allocations: 221.9 kB / 0.596 GB, free: 3.883 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004586/0.6612, allocations: 303.9 kB / 0.5963 GB, free: 3.586 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.6735, allocations: 4.778 MB / 0.601 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.6737, allocations: 43.56 kB / 0.601 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/0.6741, allocations: 136 kB / 0.6011 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005546/0.6746, allocations: 344.3 kB / 0.6015 GB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008293/0.6829, allocations: 3.562 MB / 0.6049 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02869/0.7116, allocations: 21.76 MB / 0.6262 GB, free: 3.793 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005115/0.7168, allocations: 1.884 MB / 0.628 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.718, allocations: 0.6559 MB / 0.6287 GB, free: 1.133 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008178/0.7262, allocations: 5.498 MB / 0.634 GB, free: 11.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.7263, allocations: 47.55 kB / 0.6341 GB, free: 11.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=102): time 2.986e-06/0.7263, allocations: 0 / 0.6341 GB, free: 11.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=140): time 0.02184/0.7481, allocations: 8.527 MB / 0.6424 GB, free: 2.449 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.7482, allocations: 68.72 kB / 0.6425 GB, free: 2.367 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.751, allocations: 1.563 MB / 0.644 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001244/0.7512, allocations: 49.7 kB / 0.644 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3213/1.072, allocations: 1.728 MB / 0.6457 GB, free: 125.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008323/1.073, allocations: 0.528 MB / 0.6462 GB, free: 125.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/1.074, allocations: 73.81 kB / 0.6463 GB, free: 125.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000369/1.074, allocations: 0.5038 MB / 0.6468 GB, free: 125 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/1.076, allocations: 1.149 MB / 0.6479 GB, free: 125 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002952/1.079, allocations: 3.324 MB / 0.6512 GB, free: 122.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003393/1.083, allocations: 1.857 MB / 0.653 GB, free: 122.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.606e-05/1.083, allocations: 26.44 kB / 0.653 GB, free: 122.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.009116/1.092, allocations: 4.672 MB / 0.6576 GB, free: 121.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.683e-05/1.092, allocations: 39.44 kB / 0.6576 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/1.092, allocations: 77.8 kB / 0.6577 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009794/1.093, allocations: 366.8 kB / 0.658 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003032/1.096, allocations: 0.8914 MB / 0.6589 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005633/1.102, allocations: 3.859 MB / 0.6627 GB, free: 120.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003369/1.105, allocations: 206.8 kB / 0.6629 GB, free: 120.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005479/1.106, allocations: 232.5 kB / 0.6631 GB, free: 120.3 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * 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.0006943/1.106, allocations: 396 kB / 0.6635 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/1.107, allocations: 188.7 kB / 0.6637 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004615/1.111, allocations: 2.547 MB / 0.6661 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/1.111, allocations: 14.41 kB / 0.6662 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/1.111, allocations: 5.906 kB / 0.6662 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.847e-05/1.111, allocations: 6.656 kB / 0.6662 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009257/1.121, allocations: 6.299 MB / 0.6723 GB, free: 119.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/1.121, allocations: 3.75 kB / 0.6723 GB, free: 119.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009886/1.122, allocations: 274.9 kB / 0.6726 GB, free: 119.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005901/1.122, allocations: 264.2 kB / 0.6728 GB, free: 119.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-05/1.122, allocations: 28.62 kB / 0.6729 GB, free: 119.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/1.125, allocations: 3.169 MB / 0.676 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.125, allocations: 7.844 kB / 0.676 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004307/1.13, allocations: 4.079 MB / 0.68 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/1.13, allocations: 241.4 kB / 0.6802 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/1.13, allocations: 23.44 kB / 0.6802 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007795/1.131, allocations: 105.9 kB / 0.6803 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/1.131, allocations: 97.84 kB / 0.6804 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/1.131, allocations: 41.59 kB / 0.6804 GB, free: 115.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001399/1.133, allocations: 1.046 MB / 0.6815 GB, free: 114.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.133, allocations: 0 / 0.6815 GB, free: 114.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002825/1.136, allocations: 0.6414 MB / 0.6821 GB, free: 114.6 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 120 * 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.0046/1.14, allocations: 5.629 MB / 0.6876 GB, free: 111.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004921/1.145, allocations: 3.211 MB / 0.6907 GB, free: 110 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.145, allocations: 0 / 0.6907 GB, free: 110 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/1.147, allocations: 1.233 MB / 0.6919 GB, free: 109.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/1.148, allocations: 387.8 kB / 0.6923 GB, free: 109.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009804/1.158, allocations: 4.628 MB / 0.6968 GB, free: 107.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/1.16, allocations: 1.876 MB / 0.6986 GB, free: 106.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002344/1.162, allocations: 0.8586 MB / 0.6995 GB, free: 106.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/1.163, allocations: 1.059 MB / 0.7005 GB, free: 105.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.513e-06/1.163, allocations: 2.188 kB / 0.7005 GB, free: 105.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07352/1.237, allocations: 45.32 MB / 0.7448 GB, free: 71.49 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/1.237, allocations: 165.3 kB / 0.7449 GB, free: 71.26 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.211/4.448, allocations: 0 / 0.7449 GB, free: 71.26 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)