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.01294/0.01294, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002656/0.002656, allocations: 193.7 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 2.561/2.561, 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.2784/0.2784, allocations: 9.105 MB / 299.6 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002829/0.002829, allocations: 59.91 kB / 414.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5173/0.5202, allocations: 51.43 MB / 465.6 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.01579/0.5361, allocations: 8.184 MB / 473.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009562/0.5458, allocations: 2.526 MB / 476.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002817/0.5486, allocations: 32.81 kB / 476.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.5505, allocations: 354.8 kB / 476.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007677/0.5583, allocations: 1.446 MB / 478.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.5595, allocations: 99.06 kB / 478.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005856/0.5654, allocations: 2.433 MB / 480.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002369/0.5678, allocations: 0.8116 MB / 481.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002966/0.5708, allocations: 0.8726 MB / 482.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00346/0.5743, allocations: 1.26 MB / 483.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001282/0.5756, allocations: 220.1 kB / 483.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003262/0.5789, allocations: 0.8092 MB / 484.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00255/0.5815, allocations: 1.204 MB / 485.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0031/0.5847, allocations: 1.533 MB / 487.3 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.5951, allocations: 4.969 MB / 492.3 MB, free: 364 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.5952, allocations: 4 kB / 492.3 MB, free: 360 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.5952, allocations: 0 / 492.3 MB, free: 360 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002137/0.5954, allocations: 1.094 kB / 492.3 MB, free: 360 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.02537/0.6208, allocations: 4.812 MB / 497.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.629e-05/0.6209, allocations: 12.03 kB / 497.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001951/0.6229, allocations: 0.5352 MB / 497.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.6348, allocations: 1.785 MB / 499.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006318/0.6412, allocations: 1.326 MB / 0.489 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003075/0.6416, allocations: 143.9 kB / 0.4892 GB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001619/0.6432, allocations: 191.9 kB / 0.4894 GB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02567/0.6689, allocations: 8.357 MB / 0.4975 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/0.6692, allocations: 23.81 kB / 0.4975 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000904/0.6701, allocations: 91.86 kB / 0.4976 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005749/0.6759, allocations: 1.938 MB / 0.4995 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.7035, allocations: 7.554 MB / 0.5069 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07108/0.7746, allocations: 26.32 MB / 0.5326 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01434/0.7891, allocations: 2.619 MB / 0.5352 GB, free: 8.426 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003125/0.7923, allocations: 0.8649 MB / 0.536 GB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01777/0.8101, allocations: 5.775 MB / 0.5417 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.95e-05/0.8102, allocations: 43.56 kB / 0.5417 GB, free: 1.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=141): time 6.713e-06/0.8102, allocations: 4 kB / 0.5417 GB, free: 1.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.03271/0.843, allocations: 6.992 MB / 0.5485 GB, free: 10.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/0.8431, allocations: 68.72 kB / 0.5486 GB, free: 9.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008752/0.8519, allocations: 2.619 MB / 0.5512 GB, free: 7.281 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003701/0.8523, allocations: 45.7 kB / 0.5512 GB, free: 7.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003084/0.8554, allocations: 2.23 MB / 0.5534 GB, free: 4.977 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001397/0.8569, allocations: 0.6162 MB / 0.554 GB, free: 4.355 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002611/0.8595, allocations: 0.8342 MB / 0.5548 GB, free: 3.508 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.8597, allocations: 305.1 kB / 0.5551 GB, free: 3.207 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004366/0.8641, allocations: 1.308 MB / 0.5564 GB, free: 1.891 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007898/0.8721, allocations: 3.715 MB / 0.56 GB, free: 12.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01311/0.8852, allocations: 5.46 MB / 0.5653 GB, free: 6.336 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001379/0.8854, allocations: 27.94 kB / 0.5653 GB, free: 6.309 MB / 446.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.02224/0.9077, allocations: 5.103 MB / 0.5703 GB, free: 1.195 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002719/0.9081, allocations: 40 kB / 0.5704 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003639/0.9085, allocations: 91.94 kB / 0.5705 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001823/0.9103, allocations: 276.7 kB / 0.5707 GB, free: 0.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00691/0.9173, allocations: 0.9361 MB / 0.5716 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00808/0.9254, allocations: 3.192 MB / 0.5747 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006885/0.9324, allocations: 200 kB / 0.5749 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001227/0.9337, allocations: 248 kB / 0.5752 GB, free: 12.08 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.00567/0.9394, allocations: 1.613 MB / 0.5768 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008518/0.9403, allocations: 230.5 kB / 0.577 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006759/0.947, allocations: 1.978 MB / 0.5789 GB, free: 8.238 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002059/0.9473, allocations: 27.98 kB / 0.5789 GB, free: 8.211 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.9473, allocations: 0 / 0.5789 GB, free: 8.211 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.9474, allocations: 7.969 kB / 0.5789 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/0.9674, allocations: 5.929 MB / 0.5847 GB, free: 2.105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/0.9675, allocations: 4 kB / 0.5847 GB, free: 2.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/0.9693, allocations: 215.7 kB / 0.5849 GB, free: 1.891 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009138/0.9702, allocations: 165.3 kB / 0.5851 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.9704, allocations: 35.98 kB / 0.5851 GB, free: 1.691 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4852/1.456, allocations: 2.613 MB / 0.5877 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.201e-05/1.456, allocations: 6.312 kB / 0.5877 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/1.468, allocations: 3.14 MB / 0.5908 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/1.47, allocations: 308.2 kB / 0.591 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001413/1.471, allocations: 29.05 kB / 0.5911 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003137/1.475, allocations: 66.17 kB / 0.5911 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000793/1.475, allocations: 103.4 kB / 0.5912 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000414/1.476, allocations: 48.22 kB / 0.5913 GB, free: 109.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00886/1.485, allocations: 1.668 MB / 0.5929 GB, free: 108.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.663e-06/1.485, allocations: 0 / 0.5929 GB, free: 108.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01229/1.497, allocations: 0.6945 MB / 0.5936 GB, free: 108.5 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.01315/1.51, allocations: 3.776 MB / 0.5973 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01272/1.523, allocations: 3.259 MB / 0.6005 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.15e-05/1.523, allocations: 1.375 kB / 0.6005 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003637/1.527, allocations: 1.023 MB / 0.6015 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005821/1.533, allocations: 385.5 kB / 0.6018 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1026/1.635, allocations: 28.77 MB / 0.6299 GB, free: 85.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006749/1.642, allocations: 2.596 MB / 0.6325 GB, free: 83.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006516/1.649, allocations: 1.256 MB / 0.6337 GB, free: 82.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003892/1.653, allocations: 1.288 MB / 0.6349 GB, free: 80.74 MB / 462.1 MB Notification: Performance of SimCode: time 1.844e-06/1.653, allocations: 2.516 kB / 0.6349 GB, free: 80.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3655/2.018, allocations: 45.25 MB / 0.6791 GB, free: 35.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 31.2/33.22, allocations: 11.92 kB / 0.6792 GB, free: 35.74 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)