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.00141/0.00141, allocations: 108 kB / 15.6 MB, free: 128 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.001723/0.001723, allocations: 196.8 kB / 16.53 MB, free: 6.672 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.592/1.592, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2081/0.2081, allocations: 9.101 MB / 299.5 MB, free: 1.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 71.89 kB / 362.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1234, allocations: 51.43 MB / 413.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2545/0.378, allocations: 13.8 MB / 427.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0171/0.3952, allocations: 4.012 MB / 431.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006986/0.4023, allocations: 53.97 kB / 431.3 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.4053, allocations: 390.2 kB / 431.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006841/0.4123, allocations: 0.8967 MB / 432.6 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00373/0.4161, allocations: 0.9704 MB / 433.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006465/0.4226, allocations: 2.202 MB / 435.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005071/0.4278, allocations: 2.777 MB / 438.6 MB, free: 32.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.4305, allocations: 1.022 MB / 439.6 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002162/0.4326, allocations: 1.224 MB / 440.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005755/0.4332, allocations: 308.6 kB / 441.1 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001723/0.435, allocations: 0.7247 MB / 441.8 MB, free: 31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.4361, allocations: 0.9666 MB / 442.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001926/0.438, allocations: 1.481 MB / 444.3 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00565/0.4437, allocations: 3.783 MB / 448.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/0.4437, allocations: 0 / 448.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.4438, allocations: 0 / 448.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000137/0.4439, allocations: 3.156 kB / 448.1 MB, free: 27.88 MB / 350.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.01278/0.4567, allocations: 4.157 MB / 452.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.603e-05/0.4568, allocations: 9.438 kB / 452.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006018/0.4574, allocations: 452.6 kB / 452.7 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006097/0.458, allocations: 294.3 kB / 453 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.4597, allocations: 1.139 MB / 454.1 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.4598, allocations: 218.8 kB / 454.3 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003769/0.4602, allocations: 291.1 kB / 454.6 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007594/0.4678, allocations: 4.737 MB / 459.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.468, allocations: 37.16 kB / 459.4 MB, free: 22.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002406/0.4683, allocations: 126.8 kB / 459.5 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004807/0.4687, allocations: 429.4 kB / 459.9 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007301/0.476, allocations: 3.377 MB / 463.3 MB, free: 20.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02821/0.5043, allocations: 21.63 MB / 484.9 MB, free: 20.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006074/0.5104, allocations: 1.928 MB / 486.9 MB, free: 19.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.512, allocations: 0.6923 MB / 487.6 MB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01182/0.5239, allocations: 5.542 MB / 493.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.18e-05/0.524, allocations: 47.62 kB / 493.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 6.442e-06/0.524, allocations: 1.375 kB / 493.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02687/0.5509, allocations: 9.551 MB / 0.4909 GB, free: 9.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/0.551, allocations: 68.72 kB / 0.491 GB, free: 9.082 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003524/0.5546, allocations: 1.81 MB / 0.4928 GB, free: 7.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002379/0.5548, allocations: 53.64 kB / 0.4928 GB, free: 7.215 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001457/0.5563, allocations: 1.732 MB / 0.4945 GB, free: 5.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007591/0.5571, allocations: 0.5321 MB / 0.495 GB, free: 4.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001499/0.5586, allocations: 0.7424 MB / 0.4957 GB, free: 4.168 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.5588, allocations: 361.8 kB / 0.4961 GB, free: 3.809 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/0.5609, allocations: 1.214 MB / 0.4973 GB, free: 2.594 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003922/0.5649, allocations: 3.414 MB / 0.5006 GB, free: 14.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006884/0.5718, allocations: 5.12 MB / 0.5056 GB, free: 7.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.883e-05/0.5719, allocations: 20 kB / 0.5056 GB, free: 7.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.01022/0.5822, allocations: 4.816 MB / 0.5103 GB, free: 3.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.5823, allocations: 40 kB / 0.5104 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/0.5825, allocations: 76 kB / 0.5104 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.5835, allocations: 370.7 kB / 0.5108 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/0.5867, allocations: 0.8928 MB / 0.5117 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006114/0.5929, allocations: 4.296 MB / 0.5159 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/0.5961, allocations: 211.7 kB / 0.5161 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000719/0.5968, allocations: 235.9 kB / 0.5163 GB, free: 12.79 MB / 398.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.002496/0.5993, allocations: 0.9242 MB / 0.5172 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005513/0.5999, allocations: 197.5 kB / 0.5174 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004889/0.6048, allocations: 2.599 MB / 0.5199 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.6049, allocations: 12 kB / 0.5199 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.6049, allocations: 7.938 kB / 0.5199 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.6049, allocations: 11.97 kB / 0.5199 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01361/0.6185, allocations: 6.493 MB / 0.5263 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/0.6186, allocations: 7.984 kB / 0.5263 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.6197, allocations: 268.1 kB / 0.5265 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007542/0.6205, allocations: 258.7 kB / 0.5268 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.6207, allocations: 32 kB / 0.5268 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004493/0.6252, allocations: 3.457 MB / 0.5302 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.6252, allocations: 4 kB / 0.5302 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005853/0.6311, allocations: 3.911 MB / 0.534 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006721/0.6318, allocations: 234.7 kB / 0.5342 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004864/0.6323, allocations: 32 kB / 0.5343 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.6335, allocations: 103.8 kB / 0.5344 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/0.6338, allocations: 92.75 kB / 0.5345 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.895e-05/0.6339, allocations: 40 kB / 0.5345 GB, free: 9.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002275/0.6362, allocations: 1.092 MB / 0.5356 GB, free: 8.676 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6362, allocations: 3.938 kB / 0.5356 GB, free: 8.672 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003711/0.6399, allocations: 0.6367 MB / 0.5362 GB, free: 8.035 MB / 414.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.006405/0.6464, allocations: 4.487 MB / 0.5406 GB, free: 3.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007736/0.6541, allocations: 4.3 MB / 0.5448 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/0.6542, allocations: 4 kB / 0.5448 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.6562, allocations: 1.277 MB / 0.546 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/0.6589, allocations: 447.2 kB / 0.5465 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04367/0.7026, allocations: 26.42 MB / 0.5723 GB, free: 14.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002489/0.7052, allocations: 1.829 MB / 0.574 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002613/0.7078, allocations: 0.8589 MB / 0.5749 GB, free: 12.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001803/0.7096, allocations: 1.05 MB / 0.5759 GB, free: 11.21 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7097, allocations: 4 kB / 0.5759 GB, free: 11.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2779/0.9876, allocations: 44.73 MB / 0.6196 GB, free: 136.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.62, allocations: 9.094 kB / 0.6196 GB, free: 136.9 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)