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.006542/0.006542, allocations: 98.75 kB / 15.73 MB, free: 6.059 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.001523/0.001524, allocations: 189 kB / 16.67 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1584/0.1584, allocations: 9.098 MB / 299.6 MB, free: 1.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 63.89 kB / 414.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2986, allocations: 51.42 MB / 465.6 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.008721/0.3073, allocations: 8.799 MB / 474.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00607/0.3134, allocations: 2.669 MB / 477 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.3152, allocations: 36.94 kB / 477.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009833/0.3162, allocations: 375.5 kB / 477.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003626/0.3198, allocations: 1.465 MB / 478.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.3204, allocations: 178 kB / 479.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0028/0.3232, allocations: 2.621 MB / 481.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.3246, allocations: 0.9894 MB / 482.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.3266, allocations: 0.945 MB / 483.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00207/0.3287, allocations: 1.343 MB / 485 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005033/0.3292, allocations: 239.8 kB / 485.2 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.3308, allocations: 0.8421 MB / 486.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.3321, allocations: 1.232 MB / 487.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001667/0.3338, allocations: 1.598 MB / 488.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006292/0.3401, allocations: 5.093 MB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3401, allocations: 4 kB / 494 MB, free: 15.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.3401, allocations: 0 / 494 MB, free: 15.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001966/0.3403, allocations: 1.094 kB / 494 MB, free: 15.19 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.0108/0.3511, allocations: 4.034 MB / 498 MB, free: 11.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3512, allocations: 8.031 kB / 498 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008275/0.352, allocations: 0.5468 MB / 498.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006748/0.3588, allocations: 1.797 MB / 0.4886 GB, free: 9.234 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.3618, allocations: 1.41 MB / 0.49 GB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.3619, allocations: 156.1 kB / 0.4902 GB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/0.3624, allocations: 215.8 kB / 0.4904 GB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/0.3748, allocations: 7.989 MB / 0.4982 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.3749, allocations: 31.77 kB / 0.4982 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005231/0.3754, allocations: 87.88 kB / 0.4983 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/0.3785, allocations: 1.86 MB / 0.5001 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01415/0.3926, allocations: 7.169 MB / 0.5071 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.4344, allocations: 24.41 MB / 0.5309 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005688/0.4402, allocations: 2.38 MB / 0.5333 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.4417, allocations: 0.8268 MB / 0.5341 GB, free: 9.672 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008233/0.45, allocations: 4.653 MB / 0.5386 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.017e-05/0.4501, allocations: 43.56 kB / 0.5387 GB, free: 4.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 4.007e-06/0.4501, allocations: 3.938 kB / 0.5387 GB, free: 4.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01512/0.4652, allocations: 6.979 MB / 0.5455 GB, free: 13.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.4653, allocations: 64.72 kB / 0.5455 GB, free: 13.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00511/0.4704, allocations: 2.688 MB / 0.5482 GB, free: 10.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/0.4706, allocations: 45.7 kB / 0.5482 GB, free: 10.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/0.4723, allocations: 2.188 MB / 0.5503 GB, free: 8.477 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006392/0.473, allocations: 0.5968 MB / 0.5509 GB, free: 7.875 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0015/0.4745, allocations: 0.7944 MB / 0.5517 GB, free: 7.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.582e-05/0.4746, allocations: 305.1 kB / 0.552 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002419/0.477, allocations: 1.288 MB / 0.5533 GB, free: 5.477 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00395/0.481, allocations: 3.432 MB / 0.5566 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005941/0.4869, allocations: 5.076 MB / 0.5616 GB, free: 10.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-05/0.487, allocations: 24 kB / 0.5616 GB, free: 10.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008903/0.4959, allocations: 4.929 MB / 0.5664 GB, free: 5.898 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.208e-05/0.4961, allocations: 36 kB / 0.5664 GB, free: 5.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/0.4962, allocations: 76.88 kB / 0.5665 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009276/0.4971, allocations: 332.6 kB / 0.5668 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002783/0.4999, allocations: 0.8617 MB / 0.5677 GB, free: 4.598 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004677/0.5046, allocations: 3.658 MB / 0.5712 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003463/0.5081, allocations: 195.8 kB / 0.5714 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006124/0.5087, allocations: 244 kB / 0.5717 GB, free: 380 kB / 446.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.003557/0.5123, allocations: 1.565 MB / 0.5732 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005723/0.5129, allocations: 242.3 kB / 0.5734 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.5166, allocations: 2.018 MB / 0.5754 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001103/0.5168, allocations: 31.92 kB / 0.5754 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.5168, allocations: 4 kB / 0.5754 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.5168, allocations: 3.984 kB / 0.5754 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/0.5282, allocations: 5.685 MB / 0.581 GB, free: 6.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.5282, allocations: 4 kB / 0.581 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008653/0.5291, allocations: 207.9 kB / 0.5812 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006711/0.5298, allocations: 239.7 kB / 0.5814 GB, free: 6.238 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.817e-05/0.5299, allocations: 27.98 kB / 0.5814 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003497/0.5334, allocations: 2.957 MB / 0.5843 GB, free: 3.113 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.5334, allocations: 4 kB / 0.5843 GB, free: 3.109 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2076/0.741, allocations: 3.111 MB / 0.5874 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/0.7425, allocations: 463.5 kB / 0.5878 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003382/0.7429, allocations: 24.23 kB / 0.5878 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009193/0.7438, allocations: 64.41 kB / 0.5879 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.7441, allocations: 88.16 kB / 0.588 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.7442, allocations: 46.11 kB / 0.588 GB, free: 110.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003146/0.7473, allocations: 1.728 MB / 0.5897 GB, free: 110.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7473, allocations: 0.875 kB / 0.5897 GB, free: 110.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003345/0.7507, allocations: 0.687 MB / 0.5904 GB, free: 110.6 MB / 462.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.005143/0.7558, allocations: 3.755 MB / 0.594 GB, free: 108.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005627/0.7615, allocations: 3.185 MB / 0.5972 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.7615, allocations: 0 / 0.5972 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.763, allocations: 1.048 MB / 0.5982 GB, free: 107.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/0.7651, allocations: 408 kB / 0.5986 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03485/0.8, allocations: 28.03 MB / 0.6259 GB, free: 90.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/0.8023, allocations: 2.594 MB / 0.6285 GB, free: 88.87 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002795/0.8051, allocations: 1.191 MB / 0.6296 GB, free: 88.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001818/0.807, allocations: 1.335 MB / 0.6309 GB, free: 86.77 MB / 462.1 MB Notification: Performance of SimCode: time 1.223e-06/0.807, allocations: 0 / 0.6309 GB, free: 86.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07347/0.8805, allocations: 48.17 MB / 0.678 GB, free: 38.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/16.52, allocations: 6.719 kB / 0.678 GB, free: 38.82 MB / 462.1 MB (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)