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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001917/0.001917, allocations: 183.2 kB / 16.66 MB, free: 6.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1723/0.1723, allocations: 9.09 MB / 299.6 MB, free: 1.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 59.89 kB / 414.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2711, allocations: 51.43 MB / 465.6 MB, free: 17.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01243/0.2836, allocations: 13.79 MB / 479.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009369/0.293, allocations: 4.025 MB / 483.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004526/0.2976, allocations: 54.69 kB / 483.4 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.2995, allocations: 394.2 kB / 483.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004441/0.304, allocations: 0.905 MB / 484.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.3064, allocations: 0.9764 MB / 485.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004027/0.3104, allocations: 2.227 MB / 487.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003982/0.3144, allocations: 2.761 MB / 490.7 MB, free: 24 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002307/0.3167, allocations: 1.019 MB / 491.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002593/0.3194, allocations: 1.231 MB / 492.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009081/0.3203, allocations: 310.7 kB / 493.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.3224, allocations: 0.7159 MB / 494 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00158/0.324, allocations: 0.9695 MB / 494.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003252/0.3272, allocations: 1.483 MB / 496.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006497/0.3337, allocations: 3.905 MB / 0.4886 GB, free: 9.328 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.112e-05/0.3338, allocations: 4 kB / 0.4886 GB, free: 9.324 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3338, allocations: 0 / 0.4886 GB, free: 9.324 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001496/0.334, allocations: 4 kB / 0.4886 GB, free: 9.32 MB / 366.1 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.01254/0.3465, allocations: 4.23 MB / 0.4927 GB, free: 5.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3466, allocations: 8.031 kB / 0.4927 GB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007139/0.3473, allocations: 448.4 kB / 0.4932 GB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007259/0.348, allocations: 310.9 kB / 0.4935 GB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00219/0.3502, allocations: 1.143 MB / 0.4946 GB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/0.3505, allocations: 217.7 kB / 0.4948 GB, free: 2.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004535/0.3509, allocations: 299.9 kB / 0.4951 GB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009203/0.3601, allocations: 4.74 MB / 0.4997 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.3603, allocations: 39.75 kB / 0.4997 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002789/0.3606, allocations: 128 kB / 0.4999 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006174/0.3612, allocations: 424.2 kB / 0.5003 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007912/0.3691, allocations: 3.374 MB / 0.5036 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02787/0.3971, allocations: 21.6 MB / 0.5247 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005204/0.4023, allocations: 1.922 MB / 0.5265 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.4035, allocations: 0.6909 MB / 0.5272 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007838/0.4113, allocations: 5.542 MB / 0.5326 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/0.4114, allocations: 55.44 kB / 0.5327 GB, free: 10.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 2.996e-06/0.4114, allocations: 0 / 0.5327 GB, free: 10.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02438/0.4358, allocations: 9.606 MB / 0.5421 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.4359, allocations: 72.72 kB / 0.5421 GB, free: 432 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00267/0.4386, allocations: 1.807 MB / 0.5439 GB, free: 14.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.4388, allocations: 49.7 kB / 0.5439 GB, free: 14.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.4401, allocations: 1.806 MB / 0.5457 GB, free: 12.74 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005497/0.4407, allocations: 0.5464 MB / 0.5462 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.4417, allocations: 0.7508 MB / 0.547 GB, free: 11.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.442, allocations: 361.9 kB / 0.5473 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.444, allocations: 1.225 MB / 0.5485 GB, free: 9.844 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00389/0.4479, allocations: 3.402 MB / 0.5518 GB, free: 5.359 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007187/0.4551, allocations: 5.124 MB / 0.5568 GB, free: 15.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.359e-05/0.4552, allocations: 20 kB / 0.5569 GB, free: 15.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008687/0.4639, allocations: 4.83 MB / 0.5616 GB, free: 10.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.07e-05/0.4639, allocations: 36 kB / 0.5616 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.662e-05/0.464, allocations: 83.98 kB / 0.5617 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.4651, allocations: 360.9 kB / 0.562 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/0.468, allocations: 0.9007 MB / 0.5629 GB, free: 8.918 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006033/0.474, allocations: 4.285 MB / 0.5671 GB, free: 4.488 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/0.4767, allocations: 215.8 kB / 0.5673 GB, free: 4.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004126/0.4772, allocations: 232 kB / 0.5675 GB, free: 4.051 MB / 446.1 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 (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001765/0.4789, allocations: 0.932 MB / 0.5684 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003493/0.4793, allocations: 202.6 kB / 0.5686 GB, free: 2.906 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.4838, allocations: 2.599 MB / 0.5712 GB, free: 296 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.601e-05/0.4838, allocations: 16 kB / 0.5712 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.4838, allocations: 7.938 kB / 0.5712 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.4839, allocations: 3.984 kB / 0.5712 GB, free: 268 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/0.4955, allocations: 6.435 MB / 0.5775 GB, free: 9.699 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.4956, allocations: 4 kB / 0.5775 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.4967, allocations: 267.6 kB / 0.5777 GB, free: 9.434 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007213/0.4974, allocations: 263.9 kB / 0.578 GB, free: 9.176 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.4975, allocations: 32 kB / 0.578 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004932/0.5025, allocations: 3.463 MB / 0.5814 GB, free: 5.539 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.5025, allocations: 7.938 kB / 0.5814 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006085/0.5086, allocations: 3.913 MB / 0.5852 GB, free: 1.559 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006682/0.5093, allocations: 251.7 kB / 0.5855 GB, free: 1.293 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.5095, allocations: 28 kB / 0.5855 GB, free: 1.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008354/0.5104, allocations: 107.8 kB / 0.5856 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.5106, allocations: 100.8 kB / 0.5857 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-05/0.5107, allocations: 40 kB / 0.5857 GB, free: 1.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2264/0.7372, allocations: 1.081 MB / 0.5868 GB, free: 111.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.7372, allocations: 0 / 0.5868 GB, free: 111.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003647/0.7409, allocations: 0.6334 MB / 0.5874 GB, free: 111.8 MB / 462.1 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 (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006161/0.7471, allocations: 4.497 MB / 0.5918 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005746/0.7528, allocations: 3.327 MB / 0.595 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.7529, allocations: 1.25 kB / 0.595 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.7547, allocations: 1.269 MB / 0.5963 GB, free: 108.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/0.7569, allocations: 449.1 kB / 0.5967 GB, free: 108.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03278/0.7897, allocations: 24.56 MB / 0.6207 GB, free: 92.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001387/0.7911, allocations: 1.828 MB / 0.6225 GB, free: 91.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001979/0.7931, allocations: 0.8579 MB / 0.6233 GB, free: 91.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/0.7944, allocations: 1.062 MB / 0.6244 GB, free: 90.48 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7944, allocations: 0 / 0.6244 GB, free: 90.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07504/0.8694, allocations: 45.6 MB / 0.6689 GB, free: 47.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.02/14.89, allocations: 6.031 kB / 0.6689 GB, free: 47.7 MB / 462.1 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.MeasureDemo_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)