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.004843/0.004842, allocations: 99.58 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.001277/0.001277, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04764/0.04764, allocations: 9.127 MB / 299.7 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 59.91 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08828, allocations: 51.44 MB / 465.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01065/0.09897, allocations: 8.796 MB / 474.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006013/0.105, allocations: 2.671 MB / 477 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.1063, allocations: 35.94 kB / 477.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009035/0.1073, allocations: 373.4 kB / 477.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003388/0.1107, allocations: 1.42 MB / 478.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005275/0.1112, allocations: 179.7 kB / 479 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003393/0.1146, allocations: 2.623 MB / 481.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.1159, allocations: 0.9841 MB / 482.6 MB, free: 1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.1171, allocations: 0.9415 MB / 483.6 MB, free: 56 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001714/0.1188, allocations: 1.339 MB / 484.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003891/0.1192, allocations: 240 kB / 485.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.1207, allocations: 0.8424 MB / 486 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001133/0.1219, allocations: 1.235 MB / 487.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.1235, allocations: 1.604 MB / 488.8 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.129, allocations: 5.097 MB / 493.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.129, allocations: 0 / 493.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.129, allocations: 0 / 493.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.299e-05/0.1291, allocations: 0 / 493.9 MB, free: 5.664 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.008459/0.1375, allocations: 4.035 MB / 498 MB, free: 1.559 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1376, allocations: 8.031 kB / 498 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006503/0.1383, allocations: 0.539 MB / 498.5 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00666/0.1449, allocations: 1.797 MB / 0.4886 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/0.1475, allocations: 1.418 MB / 0.49 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.1476, allocations: 156.1 kB / 0.4901 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004086/0.148, allocations: 211.8 kB / 0.4903 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/0.1601, allocations: 7.99 MB / 0.4981 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.569e-05/0.1602, allocations: 27.77 kB / 0.4982 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002882/0.1605, allocations: 95.88 kB / 0.4982 GB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003053/0.1635, allocations: 1.852 MB / 0.5001 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2069/0.3704, allocations: 7.161 MB / 0.507 GB, free: 38.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02864/0.3991, allocations: 24.41 MB / 0.5309 GB, free: 22.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004161/0.4033, allocations: 2.391 MB / 0.5332 GB, free: 21.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009764/0.4043, allocations: 0.8174 MB / 0.534 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00505/0.4094, allocations: 4.65 MB / 0.5386 GB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.4094, allocations: 39.22 kB / 0.5386 GB, free: 17.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 2.805e-06/0.4094, allocations: 3.938 kB / 0.5386 GB, free: 17.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01135/0.4208, allocations: 6.982 MB / 0.5454 GB, free: 12.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.4208, allocations: 64.72 kB / 0.5455 GB, free: 12.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002812/0.4237, allocations: 2.688 MB / 0.5481 GB, free: 9.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.7e-05/0.4238, allocations: 41.7 kB / 0.5481 GB, free: 9.262 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000805/0.4246, allocations: 2.191 MB / 0.5503 GB, free: 7.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002968/0.4249, allocations: 0.6029 MB / 0.5509 GB, free: 6.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007536/0.4256, allocations: 0.7827 MB / 0.5516 GB, free: 5.688 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.953e-05/0.4257, allocations: 312.5 kB / 0.5519 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.4273, allocations: 1.292 MB / 0.5532 GB, free: 4.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/0.4297, allocations: 3.432 MB / 0.5566 GB, free: 15.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006561/0.4363, allocations: 5.076 MB / 0.5615 GB, free: 9.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.552e-05/0.4364, allocations: 20 kB / 0.5615 GB, free: 9.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009137/0.4456, allocations: 4.928 MB / 0.5663 GB, free: 4.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.618e-05/0.4456, allocations: 36 kB / 0.5664 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.714e-05/0.4457, allocations: 78.12 kB / 0.5665 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008957/0.4466, allocations: 336 kB / 0.5668 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00279/0.4495, allocations: 0.8655 MB / 0.5676 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005033/0.4545, allocations: 3.649 MB / 0.5712 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/0.4574, allocations: 199.9 kB / 0.5714 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004112/0.4578, allocations: 231.9 kB / 0.5716 GB, free: 15.02 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.00282/0.4606, allocations: 1.576 MB / 0.5731 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/0.4611, allocations: 242.4 kB / 0.5734 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003577/0.4647, allocations: 2.018 MB / 0.5753 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/0.4648, allocations: 31.98 kB / 0.5754 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.4648, allocations: 4 kB / 0.5754 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.4648, allocations: 8.469 kB / 0.5754 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009677/0.4745, allocations: 5.688 MB / 0.5809 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.4745, allocations: 4 kB / 0.5809 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008278/0.4754, allocations: 197.8 kB / 0.5811 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007072/0.4761, allocations: 244.8 kB / 0.5814 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.421e-05/0.4762, allocations: 27.98 kB / 0.5814 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003662/0.4799, allocations: 2.949 MB / 0.5843 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.4799, allocations: 4 kB / 0.5843 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/0.4848, allocations: 3.118 MB / 0.5873 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009627/0.4858, allocations: 459.5 kB / 0.5877 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/0.4861, allocations: 24 kB / 0.5878 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008015/0.4869, allocations: 68.05 kB / 0.5878 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.4871, allocations: 92.83 kB / 0.5879 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.884e-05/0.4872, allocations: 43.98 kB / 0.588 GB, free: 13.94 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002775/0.49, allocations: 1.724 MB / 0.5897 GB, free: 12.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.49, allocations: 2.906 kB / 0.5897 GB, free: 12.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002902/0.4929, allocations: 0.6989 MB / 0.5903 GB, free: 11.5 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.005573/0.4985, allocations: 3.759 MB / 0.594 GB, free: 7.688 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005744/0.5043, allocations: 3.189 MB / 0.5971 GB, free: 4.508 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.5043, allocations: 4.25 kB / 0.5971 GB, free: 4.504 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/0.5061, allocations: 1.02 MB / 0.5981 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/0.5084, allocations: 417.5 kB / 0.5985 GB, free: 3.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04485/0.5533, allocations: 28.05 MB / 0.6259 GB, free: 4.273 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003069/0.5564, allocations: 2.595 MB / 0.6284 GB, free: 1.645 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002747/0.5591, allocations: 1.181 MB / 0.6296 GB, free: 468 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00198/0.5611, allocations: 1.341 MB / 0.6309 GB, free: 15.12 MB / 478.1 MB Notification: Performance of SimCode: time 5.34e-06/0.5612, allocations: 0 / 0.6309 GB, free: 15.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09786/0.659, allocations: 48.16 MB / 0.6779 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.37, allocations: 10.84 kB / 0.678 GB, free: 15.18 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)