Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.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.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",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.005039/0.005039, allocations: 101.1 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001169, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1778/0.1778, allocations: 9.104 MB / 299.6 MB, free: 1.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 72.33 kB / 414.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2328, allocations: 51.43 MB / 465.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.00836/0.2412, allocations: 8.19 MB / 473.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00535/0.2466, allocations: 2.529 MB / 476.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.248, allocations: 32.81 kB / 476.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009535/0.249, allocations: 355.2 kB / 476.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00322/0.2523, allocations: 1.397 MB / 478.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003815/0.2526, allocations: 105.7 kB / 478.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002813/0.2555, allocations: 2.43 MB / 480.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.2566, allocations: 0.8203 MB / 481.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.2578, allocations: 0.8596 MB / 482.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.2591, allocations: 1.255 MB / 483.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004258/0.2596, allocations: 224 kB / 483.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.2611, allocations: 0.8164 MB / 484.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001113/0.2622, allocations: 1.201 MB / 485.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001383/0.2636, allocations: 1.533 MB / 487.3 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005722/0.2693, allocations: 4.941 MB / 492.2 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.2694, allocations: 1.094 kB / 492.2 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.2694, allocations: 0 / 492.2 MB, free: 420 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001906/0.2696, allocations: 4 kB / 492.2 MB, free: 416 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.01396/0.2836, allocations: 4.728 MB / 497 MB, free: 12.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.2836, allocations: 11.97 kB / 497 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008734/0.2845, allocations: 0.5391 MB / 497.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006828/0.2913, allocations: 1.755 MB / 499.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002973/0.2943, allocations: 1.326 MB / 0.4889 GB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.2945, allocations: 143.9 kB / 0.489 GB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006316/0.2951, allocations: 191.9 kB / 0.4892 GB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/0.3085, allocations: 8.353 MB / 0.4973 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.935e-05/0.3087, allocations: 27.72 kB / 0.4974 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004265/0.3091, allocations: 87.86 kB / 0.4975 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003352/0.3125, allocations: 1.942 MB / 0.4994 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01537/0.3278, allocations: 7.558 MB / 0.5067 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03907/0.367, allocations: 26.28 MB / 0.5324 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007393/0.3744, allocations: 2.607 MB / 0.5349 GB, free: 8.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.3759, allocations: 0.861 MB / 0.5358 GB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007986/0.3839, allocations: 5.759 MB / 0.5414 GB, free: 1.395 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.384, allocations: 51.56 kB / 0.5415 GB, free: 1.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=141): time 3.857e-06/0.384, allocations: 0 / 0.5415 GB, free: 1.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.0158/0.3998, allocations: 6.951 MB / 0.5482 GB, free: 10.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3999, allocations: 64.72 kB / 0.5483 GB, free: 10.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005182/0.4051, allocations: 2.614 MB / 0.5509 GB, free: 7.574 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002468/0.4054, allocations: 45.7 kB / 0.5509 GB, free: 7.523 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/0.407, allocations: 2.147 MB / 0.553 GB, free: 5.344 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006589/0.4077, allocations: 0.5898 MB / 0.5536 GB, free: 4.746 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001877/0.4096, allocations: 0.8258 MB / 0.5544 GB, free: 3.906 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.4097, allocations: 301.1 kB / 0.5547 GB, free: 3.609 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002395/0.4121, allocations: 1.312 MB / 0.556 GB, free: 2.289 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004014/0.4161, allocations: 3.718 MB / 0.5596 GB, free: 13.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006575/0.4227, allocations: 5.449 MB / 0.5649 GB, free: 6.738 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.474e-05/0.4228, allocations: 27.94 kB / 0.5649 GB, free: 6.711 MB / 446.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.009092/0.4319, allocations: 5.094 MB / 0.5699 GB, free: 1.605 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.85e-05/0.432, allocations: 46.19 kB / 0.57 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.4321, allocations: 87.94 kB / 0.57 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007309/0.4329, allocations: 268.7 kB / 0.5703 GB, free: 1.211 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/0.4356, allocations: 0.9318 MB / 0.5712 GB, free: 284 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003734/0.4394, allocations: 3.201 MB / 0.5743 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/0.4421, allocations: 195.9 kB / 0.5745 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004539/0.4426, allocations: 252 kB / 0.5748 GB, free: 12.49 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (510): * Single equations (assignments): 505 * Array equations: 4 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002671/0.4453, allocations: 1.601 MB / 0.5763 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004482/0.4457, allocations: 225.1 kB / 0.5765 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.4494, allocations: 1.975 MB / 0.5785 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/0.4495, allocations: 27.98 kB / 0.5785 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.4495, allocations: 0 / 0.5785 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.4495, allocations: 7.922 kB / 0.5785 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.4604, allocations: 5.936 MB / 0.5843 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.4604, allocations: 4 kB / 0.5843 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008826/0.4613, allocations: 219.7 kB / 0.5845 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004679/0.4618, allocations: 165 kB / 0.5847 GB, free: 2.145 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.4619, allocations: 35.98 kB / 0.5847 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1941/0.656, allocations: 2.603 MB / 0.5872 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.6561, allocations: 9.438 kB / 0.5872 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004981/0.661, allocations: 3.123 MB / 0.5903 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007246/0.6618, allocations: 301.7 kB / 0.5906 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.6621, allocations: 29.98 kB / 0.5906 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008116/0.6629, allocations: 63.48 kB / 0.5907 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.6631, allocations: 95.48 kB / 0.5908 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.6632, allocations: 51.48 kB / 0.5908 GB, free: 109.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002772/0.666, allocations: 1.666 MB / 0.5924 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.666, allocations: 0 / 0.5924 GB, free: 108.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003121/0.6692, allocations: 0.688 MB / 0.5931 GB, free: 108.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,revolute.phi,revolute.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 (118): * Single equations (assignments): 113 * Array equations: 4 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004664/0.6738, allocations: 3.77 MB / 0.5968 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005134/0.679, allocations: 3.258 MB / 0.6 GB, free: 105.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.679, allocations: 2.797 kB / 0.6 GB, free: 105.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.6803, allocations: 1.013 MB / 0.601 GB, free: 105.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.6823, allocations: 391.8 kB / 0.6013 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/0.7136, allocations: 28.66 MB / 0.6293 GB, free: 85.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/0.7158, allocations: 2.59 MB / 0.6319 GB, free: 83.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002265/0.718, allocations: 1.259 MB / 0.6331 GB, free: 82.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/0.7192, allocations: 1.284 MB / 0.6343 GB, free: 81.33 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7192, allocations: 3.938 kB / 0.6343 GB, free: 81.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06517/0.7844, allocations: 45.25 MB / 0.6785 GB, free: 36.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.77/16.56, allocations: 14.59 kB / 0.6785 GB, free: 36.34 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab_res.csv --start-time 0 --stop-time 4.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0018 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe 2>&1)