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.005002/0.005002, allocations: 98.55 kB / 15.73 MB, free: 5.598 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.001139/0.001139, allocations: 189.6 kB / 16.67 MB, free: 5.531 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04354/0.04354, allocations: 9.113 MB / 299.6 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.91 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09288, allocations: 51.44 MB / 465.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.008341/0.1013, allocations: 8.186 MB / 473.8 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004137/0.1054, allocations: 2.534 MB / 476.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004712/0.1059, allocations: 35.94 kB / 476.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006643/0.1066, allocations: 349.7 kB / 476.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002792/0.1094, allocations: 1.436 MB / 478.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.1097, allocations: 99.81 kB / 478.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002439/0.1122, allocations: 2.428 MB / 480.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009327/0.1131, allocations: 0.8135 MB / 481.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009719/0.1141, allocations: 0.8676 MB / 482.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.1155, allocations: 1.261 MB / 483.6 MB, free: 80 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003015/0.1158, allocations: 220 kB / 483.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.1171, allocations: 0.8191 MB / 484.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009952/0.1181, allocations: 1.204 MB / 485.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.1195, allocations: 1.53 MB / 487.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005507/0.125, allocations: 4.968 MB / 492.3 MB, free: 7.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.125, allocations: 4 kB / 492.3 MB, free: 7.305 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.125, allocations: 4 kB / 492.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001138/0.1252, allocations: 0 / 492.3 MB, free: 7.301 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: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.01169/0.1369, allocations: 4.807 MB / 497.1 MB, free: 2.422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1369, allocations: 8.031 kB / 497.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006277/0.1376, allocations: 0.5469 MB / 497.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006579/0.1441, allocations: 1.769 MB / 499.4 MB, free: 84 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00265/0.1468, allocations: 1.334 MB / 0.489 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.1469, allocations: 143.9 kB / 0.4892 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004467/0.1474, allocations: 199.9 kB / 0.4894 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/0.1599, allocations: 8.349 MB / 0.4975 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.379e-05/0.16, allocations: 23.81 kB / 0.4975 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002817/0.1603, allocations: 91.86 kB / 0.4976 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003151/0.1635, allocations: 1.942 MB / 0.4995 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2198/0.3833, allocations: 7.539 MB / 0.5069 GB, free: 38.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03135/0.4146, allocations: 26.34 MB / 0.5326 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006218/0.4209, allocations: 2.609 MB / 0.5352 GB, free: 19.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.4222, allocations: 0.8714 MB / 0.536 GB, free: 19.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006477/0.4286, allocations: 5.773 MB / 0.5417 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.4287, allocations: 47.81 kB / 0.5417 GB, free: 14.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=141): time 3.577e-06/0.4287, allocations: 0 / 0.5417 GB, free: 14.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=156): time 0.01393/0.4427, allocations: 6.993 MB / 0.5485 GB, free: 8.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.4428, allocations: 64.72 kB / 0.5486 GB, free: 8.426 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.4458, allocations: 2.626 MB / 0.5512 GB, free: 5.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.4459, allocations: 45.7 kB / 0.5512 GB, free: 5.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008263/0.4468, allocations: 2.226 MB / 0.5534 GB, free: 3.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000334/0.4471, allocations: 0.6121 MB / 0.554 GB, free: 2.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008293/0.4479, allocations: 0.8458 MB / 0.5548 GB, free: 2.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.056e-05/0.448, allocations: 305 kB / 0.5551 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.4496, allocations: 1.312 MB / 0.5564 GB, free: 432 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003243/0.4528, allocations: 3.707 MB / 0.56 GB, free: 11.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005775/0.4586, allocations: 5.457 MB / 0.5653 GB, free: 4.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.625e-05/0.4587, allocations: 24 kB / 0.5653 GB, free: 4.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.008193/0.4669, allocations: 5.109 MB / 0.5703 GB, free: 15.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.492e-05/0.467, allocations: 40 kB / 0.5704 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.518e-05/0.467, allocations: 84.09 kB / 0.5704 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006703/0.4677, allocations: 285 kB / 0.5707 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002778/0.4705, allocations: 0.9241 MB / 0.5716 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.4747, allocations: 3.2 MB / 0.5747 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/0.4774, allocations: 195.8 kB / 0.5749 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000376/0.4778, allocations: 256 kB / 0.5752 GB, free: 10.65 MB / 414.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.002231/0.4801, allocations: 1.613 MB / 0.5767 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/0.4804, allocations: 234.4 kB / 0.577 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003315/0.4837, allocations: 1.971 MB / 0.5789 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/0.4838, allocations: 27.81 kB / 0.5789 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4839, allocations: 8 kB / 0.5789 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.4839, allocations: 7.969 kB / 0.5789 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009718/0.4936, allocations: 5.927 MB / 0.5847 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.4936, allocations: 7.938 kB / 0.5847 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008442/0.4945, allocations: 215.7 kB / 0.5849 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004489/0.495, allocations: 160.7 kB / 0.5851 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.092e-05/0.495, allocations: 43.89 kB / 0.5851 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002979/0.498, allocations: 2.612 MB / 0.5877 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.4981, allocations: 8 kB / 0.5877 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004458/0.5025, allocations: 3.14 MB / 0.5908 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006532/0.5032, allocations: 311.6 kB / 0.5911 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.5035, allocations: 28 kB / 0.5911 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007752/0.5043, allocations: 59.84 kB / 0.5911 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.5044, allocations: 100.8 kB / 0.5912 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-05/0.5045, allocations: 48 kB / 0.5913 GB, free: 9.754 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00235/0.5069, allocations: 1.664 MB / 0.5929 GB, free: 8.074 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5069, allocations: 7.938 kB / 0.5929 GB, free: 8.066 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002837/0.5097, allocations: 0.6835 MB / 0.5936 GB, free: 7.383 MB / 430.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.004807/0.5145, allocations: 3.781 MB / 0.5973 GB, free: 3.508 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005162/0.5197, allocations: 3.265 MB / 0.6005 GB, free: 264 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.5197, allocations: 4 kB / 0.6005 GB, free: 260 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.5211, allocations: 1.026 MB / 0.6015 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/0.523, allocations: 379.3 kB / 0.6018 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03885/0.5618, allocations: 28.78 MB / 0.6299 GB, free: 14.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002648/0.5645, allocations: 2.589 MB / 0.6325 GB, free: 12.18 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002707/0.5672, allocations: 1.263 MB / 0.6337 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/0.5688, allocations: 1.284 MB / 0.635 GB, free: 9.625 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5688, allocations: 4 kB / 0.635 GB, free: 9.621 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08071/0.6495, allocations: 45.23 MB / 0.6791 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.05/16.7, allocations: 11.77 kB / 0.6791 GB, free: 12.57 MB / 0.5137 GB (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)