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.001566/0.001566, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002141/0.002141, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.477/1.477, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1791/0.1791, allocations: 9.096 MB / 299.5 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.14 kB / 362 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1012, allocations: 51.43 MB / 413.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.008461/0.1097, allocations: 8.188 MB / 421.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.183/0.2927, allocations: 2.524 MB / 424.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.2941, allocations: 33.69 kB / 424.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008353/0.295, allocations: 349.5 kB / 424.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002949/0.2979, allocations: 1.404 MB / 426 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.2983, allocations: 94.84 kB / 426.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.3008, allocations: 2.428 MB / 428.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.3019, allocations: 0.8152 MB / 429.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.3032, allocations: 0.8646 MB / 430.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001422/0.3046, allocations: 1.256 MB / 431.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003968/0.305, allocations: 218 kB / 431.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.3064, allocations: 0.8137 MB / 432.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008778/0.3073, allocations: 1.206 MB / 433.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.3085, allocations: 1.535 MB / 435.2 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003638/0.3121, allocations: 4.697 MB / 439.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3121, allocations: 4.594 kB / 439.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3122, allocations: 0 / 439.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.923e-05/0.3123, allocations: 0 / 439.9 MB, free: 32.16 MB / 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.01077/0.323, allocations: 4.727 MB / 444.6 MB, free: 30.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.3231, allocations: 9.031 kB / 444.6 MB, free: 30.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007447/0.3239, allocations: 0.5412 MB / 445.2 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006127/0.33, allocations: 1.751 MB / 446.9 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.3325, allocations: 1.324 MB / 448.2 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.3327, allocations: 141.4 kB / 448.4 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004657/0.3331, allocations: 192.1 kB / 448.6 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01173/0.3449, allocations: 8.357 MB / 456.9 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-05/0.345, allocations: 28.62 kB / 457 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/0.3453, allocations: 89.88 kB / 457 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003228/0.3485, allocations: 1.942 MB / 459 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.3675, allocations: 7.539 MB / 466.5 MB, free: 22.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04/0.4076, allocations: 26.37 MB / 492.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006528/0.4142, allocations: 2.598 MB / 495.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.4159, allocations: 0.8649 MB / 496.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009004/0.4249, allocations: 5.782 MB / 0.4904 GB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.425, allocations: 43.56 kB / 0.4904 GB, free: 8.508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=141): time 7.214e-06/0.425, allocations: 0 / 0.4904 GB, free: 8.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01696/0.442, allocations: 6.944 MB / 0.4972 GB, free: 1.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.4421, allocations: 64.72 kB / 0.4973 GB, free: 1.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004795/0.4469, allocations: 2.609 MB / 0.4998 GB, free: 14.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002044/0.4471, allocations: 45.7 kB / 0.4998 GB, free: 14.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001623/0.4487, allocations: 2.142 MB / 0.5019 GB, free: 12.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006838/0.4494, allocations: 0.5884 MB / 0.5025 GB, free: 12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001441/0.4509, allocations: 0.8258 MB / 0.5033 GB, free: 11.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.451, allocations: 309.1 kB / 0.5036 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002306/0.4533, allocations: 1.308 MB / 0.5049 GB, free: 9.535 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00402/0.4574, allocations: 3.714 MB / 0.5085 GB, free: 4.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006335/0.4637, allocations: 5.46 MB / 0.5139 GB, free: 13.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.218e-05/0.4638, allocations: 24 kB / 0.5139 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.009925/0.4738, allocations: 5.095 MB / 0.5188 GB, free: 8.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/0.4739, allocations: 40 kB / 0.5189 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/0.474, allocations: 84.91 kB / 0.519 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00075/0.4748, allocations: 280.6 kB / 0.5192 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003038/0.4778, allocations: 0.9319 MB / 0.5201 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004151/0.482, allocations: 3.202 MB / 0.5233 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/0.4853, allocations: 195.9 kB / 0.5235 GB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006856/0.486, allocations: 252 kB / 0.5237 GB, free: 3.746 MB / 398.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.003351/0.4893, allocations: 1.605 MB / 0.5253 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005415/0.4899, allocations: 229 kB / 0.5255 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003793/0.4937, allocations: 1.967 MB / 0.5274 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/0.4938, allocations: 27.98 kB / 0.5274 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.4938, allocations: 4 kB / 0.5274 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4939, allocations: 7.984 kB / 0.5274 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.5056, allocations: 5.97 MB / 0.5333 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/0.5057, allocations: 4 kB / 0.5333 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008683/0.5065, allocations: 219.6 kB / 0.5335 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005062/0.5071, allocations: 166.1 kB / 0.5336 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.5072, allocations: 39.98 kB / 0.5337 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/0.5102, allocations: 2.604 MB / 0.5362 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/0.5102, allocations: 15.88 kB / 0.5362 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004717/0.515, allocations: 3.124 MB / 0.5393 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/0.5157, allocations: 302.2 kB / 0.5396 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004848/0.5162, allocations: 31.98 kB / 0.5396 GB, free: 3.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.5172, allocations: 55.94 kB / 0.5397 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.5175, allocations: 98.92 kB / 0.5398 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.5176, allocations: 54.8 kB / 0.5398 GB, free: 2.863 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002956/0.5205, allocations: 1.66 MB / 0.5414 GB, free: 1.188 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5205, allocations: 4 kB / 0.5414 GB, free: 1.184 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003293/0.5238, allocations: 0.6952 MB / 0.5421 GB, free: 500 kB / 414.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.005151/0.529, allocations: 3.775 MB / 0.5458 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0076/0.5366, allocations: 4.447 MB / 0.5501 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.5367, allocations: 4.188 kB / 0.5502 GB, free: 8.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.5382, allocations: 1.014 MB / 0.5511 GB, free: 7.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.5407, allocations: 380.9 kB / 0.5515 GB, free: 6.805 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05357/0.5943, allocations: 30.99 MB / 0.5818 GB, free: 3.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004409/0.5987, allocations: 2.582 MB / 0.5843 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.1967/0.7955, allocations: 1.268 MB / 0.5855 GB, free: 139.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/0.7975, allocations: 1.282 MB / 0.5868 GB, free: 139.4 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/0.7975, allocations: 2.188 kB / 0.5868 GB, free: 139.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09673/0.8943, allocations: 47.8 MB / 0.6335 GB, free: 127.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/12.37, allocations: 7.922 kB / 0.6335 GB, free: 127.5 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)