Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.008549/0.008549, allocations: 99.98 kB / 15.73 MB, free: 6.02 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.002015/0.002015, allocations: 189.6 kB / 16.67 MB, free: 5.938 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04773/0.04773, allocations: 9.13 MB / 299.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 71.88 kB / 414.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09491, allocations: 51.44 MB / 465.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01013/0.1051, allocations: 8.641 MB / 474.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005185/0.1103, allocations: 2.612 MB / 476.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008706/0.1112, allocations: 35.94 kB / 476.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008336/0.1121, allocations: 357.6 kB / 477.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002992/0.1151, allocations: 1.397 MB / 478.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.1155, allocations: 151.7 kB / 478.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003061/0.1186, allocations: 2.533 MB / 481.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001297/0.1199, allocations: 0.9386 MB / 482.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.1212, allocations: 0.8988 MB / 483.1 MB, free: 496 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001999/0.1233, allocations: 1.315 MB / 484.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000533/0.1238, allocations: 232 kB / 484.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.1256, allocations: 0.8348 MB / 485.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.1269, allocations: 1.215 MB / 486.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.1285, allocations: 1.569 MB / 488.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006882/0.1354, allocations: 5.011 MB / 493.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1355, allocations: 0 / 493.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1355, allocations: 0 / 493.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001753/0.1357, allocations: 4 kB / 493.3 MB, free: 6.27 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.009698/0.1454, allocations: 3.961 MB / 497.3 MB, free: 2.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1454, allocations: 12.03 kB / 497.3 MB, free: 2.227 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00068/0.1461, allocations: 0.5349 MB / 497.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006753/0.1529, allocations: 1.793 MB / 499.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002724/0.1556, allocations: 1.379 MB / 0.4892 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.1558, allocations: 148.1 kB / 0.4894 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004761/0.1563, allocations: 203.8 kB / 0.4896 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.169, allocations: 7.963 MB / 0.4974 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-05/0.1691, allocations: 27.81 kB / 0.4974 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.1694, allocations: 91.86 kB / 0.4975 GB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003118/0.1725, allocations: 1.84 MB / 0.4993 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2249/0.3974, allocations: 7.162 MB / 0.5063 GB, free: 38.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02854/0.426, allocations: 24.12 MB / 0.5298 GB, free: 23.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004836/0.4309, allocations: 2.372 MB / 0.5321 GB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.432, allocations: 0.8288 MB / 0.5329 GB, free: 21.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005726/0.4377, allocations: 4.747 MB / 0.5376 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.4378, allocations: 43.19 kB / 0.5376 GB, free: 17.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.436e-06/0.4378, allocations: 4 kB / 0.5376 GB, free: 17.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01234/0.4501, allocations: 7.112 MB / 0.5446 GB, free: 13.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.4502, allocations: 64.72 kB / 0.5446 GB, free: 12.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002665/0.4528, allocations: 2.63 MB / 0.5472 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.826e-05/0.4529, allocations: 45.7 kB / 0.5472 GB, free: 10.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007591/0.4537, allocations: 2.164 MB / 0.5494 GB, free: 8.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.454, allocations: 0.5961 MB / 0.5499 GB, free: 7.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000749/0.4547, allocations: 0.7941 MB / 0.5507 GB, free: 6.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.116e-05/0.4548, allocations: 305.1 kB / 0.551 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/0.4564, allocations: 1.311 MB / 0.5523 GB, free: 5.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.4587, allocations: 3.429 MB / 0.5556 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006606/0.4653, allocations: 5.092 MB / 0.5606 GB, free: 10.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.429e-05/0.4654, allocations: 22.25 kB / 0.5606 GB, free: 10.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.009077/0.4745, allocations: 4.812 MB / 0.5653 GB, free: 5.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.4746, allocations: 47.05 kB / 0.5654 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.41e-05/0.4747, allocations: 74.25 kB / 0.5654 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000475/0.4752, allocations: 204.8 kB / 0.5656 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.4781, allocations: 0.8968 MB / 0.5665 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.4807, allocations: 2.333 MB / 0.5688 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/0.4834, allocations: 219.7 kB / 0.569 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003559/0.4838, allocations: 228 kB / 0.5692 GB, free: 1.48 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002564/0.4864, allocations: 1.558 MB / 0.5707 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003705/0.4867, allocations: 230.5 kB / 0.571 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/0.4903, allocations: 1.951 MB / 0.5729 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/0.4904, allocations: 27.98 kB / 0.5729 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4904, allocations: 0 / 0.5729 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.4904, allocations: 9.906 kB / 0.5729 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009361/0.4998, allocations: 5.578 MB / 0.5783 GB, free: 8.008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.4998, allocations: 4 kB / 0.5784 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.5008, allocations: 235.7 kB / 0.5786 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003216/0.5012, allocations: 104.9 kB / 0.5787 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.328e-05/0.5013, allocations: 28 kB / 0.5787 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.5033, allocations: 2.065 MB / 0.5807 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/0.5033, allocations: 4.031 kB / 0.5807 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005068/0.5084, allocations: 3.05 MB / 0.5837 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006839/0.5091, allocations: 307.6 kB / 0.584 GB, free: 2.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.5093, allocations: 24 kB / 0.584 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008126/0.5102, allocations: 71.91 kB / 0.5841 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.5104, allocations: 88.83 kB / 0.5842 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-05/0.5104, allocations: 47.81 kB / 0.5842 GB, free: 1.801 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002628/0.5131, allocations: 1.687 MB / 0.5859 GB, free: 100 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.5131, allocations: 4 kB / 0.5859 GB, free: 96 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002746/0.5158, allocations: 0.6615 MB / 0.5865 GB, free: 15.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005321/0.5212, allocations: 3.684 MB / 0.5901 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005402/0.5266, allocations: 3.138 MB / 0.5932 GB, free: 8.574 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5266, allocations: 4.062 kB / 0.5932 GB, free: 8.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.5282, allocations: 0.985 MB / 0.5941 GB, free: 7.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.53, allocations: 393.3 kB / 0.5945 GB, free: 7.207 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04189/0.5719, allocations: 27.45 MB / 0.6213 GB, free: 9.039 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002894/0.5749, allocations: 2.563 MB / 0.6238 GB, free: 6.445 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002968/0.5779, allocations: 1.2 MB / 0.625 GB, free: 5.238 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001791/0.5797, allocations: 1.292 MB / 0.6263 GB, free: 3.945 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5797, allocations: 0 / 0.6263 GB, free: 3.945 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09157/0.6713, allocations: 46.21 MB / 0.6714 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.56/16.24, allocations: 4.062 kB / 0.6714 GB, free: 5.961 MB / 0.4981 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab_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_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)