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.001594/0.001594, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.5 MB / 229.6 MB, free: 3.121 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.0008579/0.0008579, allocations: 101.2 kB / 280.5 MB, free: 1.133 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0409/0.0409, allocations: 8.841 MB / 340.1 MB, free: 5.578 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.751e-05/2.752e-05, allocations: 4 kB / 398.8 MB, free: 66.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 52.39 MB / 451.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3744/0.4807, allocations: 95.56 MB / 0.5339 GB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.481, allocations: 78.52 kB / 0.534 GB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1173/0.5984, allocations: 47.66 MB / 0.5805 GB, free: 4.938 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.5984, allocations: 0 / 0.5805 GB, free: 4.938 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001477/0.5986, allocations: 71.92 kB / 0.5806 GB, free: 4.867 MB / 394.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.01056/0.6091, allocations: 2.947 MB / 0.5835 GB, free: 1.863 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.6092, allocations: 12.02 kB / 0.5835 GB, free: 1.852 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.6102, allocations: 308.9 kB / 0.5838 GB, free: 1.547 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.6123, allocations: 1.191 MB / 0.5849 GB, free: 320 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.559e-05/0.6124, allocations: 92 kB / 0.585 GB, free: 228 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003617/0.6128, allocations: 183.9 kB / 0.5852 GB, free: 44 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004927/0.6177, allocations: 2.894 MB / 0.588 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006793/0.6245, allocations: 4.2 MB / 0.5921 GB, free: 8.477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/0.6247, allocations: 35.62 kB / 0.5922 GB, free: 8.441 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002198/0.6249, allocations: 23.98 kB / 0.5922 GB, free: 8.418 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004978/0.6254, allocations: 344.2 kB / 0.5925 GB, free: 8.078 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02493/0.6504, allocations: 21.8 MB / 0.6138 GB, free: 1.496 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.6531, allocations: 1.914 MB / 0.6157 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00076/0.6539, allocations: 0.5631 MB / 0.6162 GB, free: 14.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006105/0.66, allocations: 4.6 MB / 0.6207 GB, free: 9.852 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.6601, allocations: 39.34 kB / 0.6208 GB, free: 9.805 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.525e-06/0.6601, allocations: 0 / 0.6208 GB, free: 9.805 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01772/0.6778, allocations: 7.771 MB / 0.6284 GB, free: 1.957 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.6779, allocations: 72.72 kB / 0.6284 GB, free: 1.871 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/0.6801, allocations: 1.381 MB / 0.6298 GB, free: 500 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.89e-05/0.6802, allocations: 29.7 kB / 0.6298 GB, free: 464 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0012/0.6814, allocations: 1.758 MB / 0.6315 GB, free: 14.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.6818, allocations: 497.2 kB / 0.632 GB, free: 14.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.682, allocations: 3.938 kB / 0.632 GB, free: 14.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003244/0.6823, allocations: 0.4911 MB / 0.6325 GB, free: 13.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001511/0.6838, allocations: 1.077 MB / 0.6335 GB, free: 12.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003151/0.687, allocations: 3.227 MB / 0.6367 GB, free: 8.281 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/0.6896, allocations: 1.758 MB / 0.6384 GB, free: 6.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-05/0.6896, allocations: 24 kB / 0.6384 GB, free: 6.496 MB / 458.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008424/0.698, allocations: 4.131 MB / 0.6424 GB, free: 2.355 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.2e-05/0.6982, allocations: 40.78 kB / 0.6425 GB, free: 2.316 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/0.6983, allocations: 76.88 kB / 0.6426 GB, free: 2.242 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009709/0.6993, allocations: 360.6 kB / 0.6429 GB, free: 1.887 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00291/0.7022, allocations: 0.889 MB / 0.6438 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2674/0.9696, allocations: 3.719 MB / 0.6474 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002712/0.9724, allocations: 131.5 kB / 0.6475 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007948/0.9732, allocations: 235.4 kB / 0.6478 GB, free: 123.2 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.0007613/0.974, allocations: 301.1 kB / 0.648 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003542/0.9775, allocations: 2.018 MB / 0.65 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000339/0.9779, allocations: 176.9 kB / 0.6502 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004169/0.9821, allocations: 2.39 MB / 0.6525 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/0.9821, allocations: 12.75 kB / 0.6525 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.9821, allocations: 5.141 kB / 0.6525 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.9822, allocations: 6.234 kB / 0.6525 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/0.9944, allocations: 5.608 MB / 0.658 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.9945, allocations: 3.797 kB / 0.658 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.9959, allocations: 263.9 kB / 0.6583 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007509/0.9967, allocations: 248.2 kB / 0.6585 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.625e-05/0.9968, allocations: 7.922 kB / 0.6585 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00351/1, allocations: 3.052 MB / 0.6615 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1, allocations: 2.156 kB / 0.6615 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/1.005, allocations: 3.746 MB / 0.6652 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005292/1.005, allocations: 230.2 kB / 0.6654 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/1.006, allocations: 3.812 kB / 0.6654 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/1.006, allocations: 82.64 kB / 0.6655 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/1.007, allocations: 89.23 kB / 0.6655 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.866e-05/1.007, allocations: 31.22 kB / 0.6656 GB, free: 120.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001321/1.008, allocations: 0.8914 MB / 0.6664 GB, free: 120.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.008, allocations: 1.406 kB / 0.6664 GB, free: 120.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003573/1.012, allocations: 0.5374 MB / 0.667 GB, free: 120.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (115): * Single equations (assignments): 114 * 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.004581/1.016, allocations: 4.898 MB / 0.6718 GB, free: 118.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004313/1.021, allocations: 2.959 MB / 0.6746 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/1.021, allocations: 0 / 0.6746 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/1.022, allocations: 1.168 MB / 0.6758 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/1.024, allocations: 330.8 kB / 0.6761 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009171/1.033, allocations: 4.389 MB / 0.6804 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001433/1.034, allocations: 1.874 MB / 0.6822 GB, free: 115.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002429/1.037, allocations: 0.8361 MB / 0.683 GB, free: 115.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/1.038, allocations: 1.042 MB / 0.684 GB, free: 114.3 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/1.038, allocations: 0 / 0.684 GB, free: 114.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07068/1.109, allocations: 42.3 MB / 0.7254 GB, free: 91.37 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/1.109, allocations: 117.5 kB / 0.7255 GB, free: 91.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.094/4.204, allocations: 0 / 0.7255 GB, free: 91.18 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)