Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.01395/0.01395, allocations: 98.27 kB / 15.73 MB, free: 6.004 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.00366/0.00366, allocations: 197.3 kB / 16.67 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.309/2.309, allocations: 222.9 MB / 240.4 MB, free: 4.133 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.3127/0.3127, allocations: 9.095 MB / 299.6 MB, free: 1.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 59.91 kB / 414.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5002/0.5027, allocations: 51.43 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01441/0.5171, allocations: 8.325 MB / 473.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009095/0.5263, allocations: 2.586 MB / 476.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.5293, allocations: 33.72 kB / 476.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.5318, allocations: 357.5 kB / 476.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007301/0.5391, allocations: 1.433 MB / 478.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009787/0.5401, allocations: 138.8 kB / 478.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006486/0.5466, allocations: 2.495 MB / 480.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002656/0.5493, allocations: 0.8965 MB / 481.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002899/0.5523, allocations: 0.896 MB / 482.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003411/0.5557, allocations: 1.295 MB / 484 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001791/0.5575, allocations: 228.7 kB / 484.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004073/0.5616, allocations: 0.8354 MB / 485.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002597/0.5643, allocations: 1.201 MB / 486.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005158/0.5695, allocations: 1.55 MB / 487.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.5815, allocations: 4.975 MB / 492.8 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.5816, allocations: 0 / 492.8 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5816, allocations: 0 / 492.8 MB, free: 8 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002484/0.5818, allocations: 0 / 492.8 MB, free: 8 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01996/0.6018, allocations: 3.922 MB / 496.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.956e-05/0.6019, allocations: 12.03 kB / 496.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002139/0.6041, allocations: 0.5229 MB / 497.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01249/0.6166, allocations: 1.789 MB / 499 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005861/0.6225, allocations: 1.361 MB / 0.4887 GB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.6228, allocations: 148 kB / 0.4888 GB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.6242, allocations: 199.7 kB / 0.489 GB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02269/0.6469, allocations: 7.898 MB / 0.4967 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.6471, allocations: 31.75 kB / 0.4967 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004938/0.6476, allocations: 87.88 kB / 0.4968 GB, free: 464 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005127/0.6528, allocations: 1.848 MB / 0.4986 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02368/0.6765, allocations: 7.121 MB / 0.5056 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05735/0.7339, allocations: 23.88 MB / 0.5289 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009181/0.7432, allocations: 2.366 MB / 0.5312 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.7453, allocations: 0.8164 MB / 0.532 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01308/0.7585, allocations: 4.613 MB / 0.5365 GB, free: 6.801 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.056e-05/0.7586, allocations: 43.56 kB / 0.5366 GB, free: 6.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 6.232e-06/0.7586, allocations: 0 / 0.5366 GB, free: 6.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.02647/0.7851, allocations: 7.107 MB / 0.5435 GB, free: 15.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.25e-05/0.7852, allocations: 68.66 kB / 0.5436 GB, free: 15.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006049/0.7913, allocations: 2.608 MB / 0.5461 GB, free: 12.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002987/0.7916, allocations: 49.69 kB / 0.5462 GB, free: 12.78 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002346/0.794, allocations: 2.137 MB / 0.5483 GB, free: 10.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001125/0.7951, allocations: 0.589 MB / 0.5488 GB, free: 10.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002043/0.7972, allocations: 0.7785 MB / 0.5496 GB, free: 9.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.7974, allocations: 301.1 kB / 0.5499 GB, free: 8.949 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003944/0.8014, allocations: 1.28 MB / 0.5511 GB, free: 7.668 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005895/0.8073, allocations: 3.378 MB / 0.5544 GB, free: 3.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/0.8177, allocations: 5.005 MB / 0.5593 GB, free: 13.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/0.8178, allocations: 20 kB / 0.5593 GB, free: 13.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01636/0.8342, allocations: 4.837 MB / 0.5641 GB, free: 8.379 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.8344, allocations: 40.88 kB / 0.5641 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/0.8345, allocations: 72.28 kB / 0.5642 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.836, allocations: 348.5 kB / 0.5645 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005658/0.8416, allocations: 0.8461 MB / 0.5653 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008465/0.8502, allocations: 3.649 MB / 0.5689 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00622/0.8564, allocations: 200 kB / 0.5691 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001361/0.8579, allocations: 228 kB / 0.5693 GB, free: 2.871 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * 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.00536/0.8633, allocations: 1.55 MB / 0.5708 GB, free: 1.309 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007562/0.864, allocations: 230.5 kB / 0.571 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005938/0.87, allocations: 2.009 MB / 0.573 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001675/0.8702, allocations: 27.97 kB / 0.573 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.8702, allocations: 4 kB / 0.573 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.32e-05/0.8703, allocations: 7.969 kB / 0.573 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/0.8876, allocations: 5.643 MB / 0.5785 GB, free: 9.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/0.8877, allocations: 4 kB / 0.5785 GB, free: 9.246 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.889, allocations: 207.7 kB / 0.5787 GB, free: 9.043 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009979/0.89, allocations: 244.6 kB / 0.579 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/0.8902, allocations: 31.98 kB / 0.579 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005196/0.8954, allocations: 2.944 MB / 0.5819 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.8954, allocations: 0 / 0.5819 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007417/0.9028, allocations: 3.105 MB / 0.5849 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.9041, allocations: 311.6 kB / 0.5852 GB, free: 2.203 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004688/0.9046, allocations: 28 kB / 0.5852 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.9059, allocations: 59.92 kB / 0.5853 GB, free: 2.117 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.9062, allocations: 88.77 kB / 0.5854 GB, free: 2.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.9064, allocations: 47.92 kB / 0.5854 GB, free: 1.984 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004101/0.9105, allocations: 1.683 MB / 0.5871 GB, free: 292 kB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9105, allocations: 0 / 0.5871 GB, free: 292 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.3886/1.299, allocations: 0.6751 MB / 0.5877 GB, free: 111.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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.00902/1.308, allocations: 3.746 MB / 0.5914 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008851/1.317, allocations: 3.141 MB / 0.5944 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/1.317, allocations: 1.031 kB / 0.5944 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0027/1.32, allocations: 1.03 MB / 0.5955 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003433/1.323, allocations: 386.9 kB / 0.5958 GB, free: 108.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07082/1.394, allocations: 27.43 MB / 0.6226 GB, free: 92.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004656/1.399, allocations: 2.554 MB / 0.6251 GB, free: 91.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004848/1.404, allocations: 1.175 MB / 0.6263 GB, free: 91.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002858/1.407, allocations: 1.29 MB / 0.6275 GB, free: 90.01 MB / 462.1 MB Notification: Performance of SimCode: time 1.603e-06/1.407, allocations: 4 kB / 0.6275 GB, free: 90 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1284/1.535, allocations: 46.78 MB / 0.6732 GB, free: 43.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.93/28.46, allocations: 7.797 kB / 0.6732 GB, free: 43.8 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrab_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)