Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",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.006038/0.006037, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001385/0.001385, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04579/0.04579, allocations: 9.123 MB / 299.7 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 67.89 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.093/0.09419, allocations: 51.44 MB / 465.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01031/0.1045, allocations: 8.786 MB / 474.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005288/0.1098, allocations: 2.678 MB / 477 MB, free: 6.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.111, allocations: 35.94 kB / 477.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.1121, allocations: 369.5 kB / 477.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003533/0.1157, allocations: 1.467 MB / 478.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006061/0.1164, allocations: 179.7 kB / 479.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003261/0.1197, allocations: 2.615 MB / 481.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.1212, allocations: 0.9881 MB / 482.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.1227, allocations: 0.9454 MB / 483.6 MB, free: 0 / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002053/0.1248, allocations: 1.343 MB / 485 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000713/0.1255, allocations: 240 kB / 485.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.1274, allocations: 0.8426 MB / 486.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.1289, allocations: 1.235 MB / 487.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002289/0.1312, allocations: 1.596 MB / 488.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006073/0.1373, allocations: 5.1 MB / 494 MB, free: 5.605 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1373, allocations: 0 / 494 MB, free: 5.605 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1373, allocations: 0 / 494 MB, free: 5.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.28e-05/0.1374, allocations: 0 / 494 MB, free: 5.605 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.008496/0.1459, allocations: 4.035 MB / 498 MB, free: 1.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.146, allocations: 8.031 kB / 498 MB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000643/0.1466, allocations: 0.5429 MB / 498.6 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006794/0.1534, allocations: 1.797 MB / 0.4886 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.1561, allocations: 1.426 MB / 0.49 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.1562, allocations: 148.1 kB / 0.4902 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003953/0.1566, allocations: 211.7 kB / 0.4904 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.1689, allocations: 7.993 MB / 0.4982 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-05/0.1691, allocations: 27.75 kB / 0.4982 GB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004797/0.1696, allocations: 95.86 kB / 0.4983 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003081/0.1726, allocations: 1.844 MB / 0.5001 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2341/0.4067, allocations: 7.17 MB / 0.5071 GB, free: 38.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03129/0.4381, allocations: 24.41 MB / 0.5309 GB, free: 22.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004644/0.4427, allocations: 2.385 MB / 0.5333 GB, free: 21.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.4439, allocations: 0.8252 MB / 0.5341 GB, free: 21.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006015/0.45, allocations: 4.649 MB / 0.5386 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.45, allocations: 38.62 kB / 0.5386 GB, free: 17.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 4.038e-06/0.45, allocations: 0 / 0.5386 GB, free: 17.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01246/0.4625, allocations: 6.988 MB / 0.5455 GB, free: 12.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.4625, allocations: 64.72 kB / 0.5455 GB, free: 11.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003664/0.4662, allocations: 2.676 MB / 0.5481 GB, free: 9.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.4664, allocations: 45.7 kB / 0.5482 GB, free: 9.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.4674, allocations: 2.195 MB / 0.5503 GB, free: 6.992 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004337/0.4678, allocations: 0.6111 MB / 0.5509 GB, free: 6.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000996/0.4688, allocations: 0.7827 MB / 0.5517 GB, free: 5.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/0.4689, allocations: 304.5 kB / 0.552 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/0.4706, allocations: 1.292 MB / 0.5532 GB, free: 4.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002532/0.4731, allocations: 3.432 MB / 0.5566 GB, free: 15.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006146/0.4793, allocations: 5.076 MB / 0.5616 GB, free: 9.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.153e-05/0.4794, allocations: 24 kB / 0.5616 GB, free: 9.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009458/0.4889, allocations: 4.919 MB / 0.5664 GB, free: 4.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.78e-05/0.489, allocations: 44.92 kB / 0.5664 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.4891, allocations: 72 kB / 0.5665 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009761/0.4901, allocations: 339.4 kB / 0.5668 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002699/0.4928, allocations: 0.8616 MB / 0.5677 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004826/0.4977, allocations: 3.656 MB / 0.5712 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003018/0.5007, allocations: 200 kB / 0.5714 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005447/0.5013, allocations: 231.9 kB / 0.5716 GB, free: 14.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002911/0.5042, allocations: 1.573 MB / 0.5732 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006055/0.5048, allocations: 242.4 kB / 0.5734 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003944/0.5088, allocations: 2.021 MB / 0.5754 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/0.5089, allocations: 27.98 kB / 0.5754 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.5089, allocations: 4 kB / 0.5754 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.858e-05/0.5089, allocations: 7.969 kB / 0.5754 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.5206, allocations: 5.684 MB / 0.581 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.5206, allocations: 4 kB / 0.581 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008662/0.5215, allocations: 212 kB / 0.5812 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006988/0.5222, allocations: 228.5 kB / 0.5814 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.5224, allocations: 39.92 kB / 0.5814 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003549/0.5259, allocations: 2.934 MB / 0.5843 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.5259, allocations: 7.938 kB / 0.5843 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004951/0.5309, allocations: 3.118 MB / 0.5874 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.5321, allocations: 463.5 kB / 0.5878 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005808/0.5327, allocations: 24 kB / 0.5878 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.5338, allocations: 67.86 kB / 0.5879 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.534, allocations: 88.83 kB / 0.588 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.751e-05/0.5341, allocations: 43.98 kB / 0.588 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003481/0.5376, allocations: 1.724 MB / 0.5897 GB, free: 12.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5377, allocations: 6.906 kB / 0.5897 GB, free: 12.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003447/0.5411, allocations: 0.6911 MB / 0.5904 GB, free: 11.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,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 (113): * Single equations (assignments): 108 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005489/0.5466, allocations: 3.771 MB / 0.5941 GB, free: 7.602 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005869/0.5525, allocations: 3.189 MB / 0.5972 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.5525, allocations: 0 / 0.5972 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.5543, allocations: 1.025 MB / 0.5982 GB, free: 3.387 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.5567, allocations: 413.4 kB / 0.5986 GB, free: 2.996 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0459/0.6026, allocations: 28.05 MB / 0.626 GB, free: 4.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003774/0.6064, allocations: 2.595 MB / 0.6285 GB, free: 1.551 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002903/0.6094, allocations: 1.181 MB / 0.6297 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/0.6113, allocations: 1.348 MB / 0.631 GB, free: 15.02 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6113, allocations: 0 / 0.631 GB, free: 15.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0867/0.698, allocations: 48.16 MB / 0.678 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.42/16.12, allocations: 14.66 kB / 0.678 GB, free: 15.09 MB / 0.5137 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)