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.007245/0.007245, allocations: 97.62 kB / 15.73 MB, free: 6.035 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.00157/0.00157, allocations: 201.4 kB / 16.68 MB, free: 5.961 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1517/0.1517, allocations: 9.11 MB / 299.7 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 67.89 kB / 414.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2479, allocations: 51.42 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.008163/0.2561, allocations: 8.324 MB / 473.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005431/0.2615, allocations: 2.584 MB / 476.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/0.2631, allocations: 32.81 kB / 476.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.2644, allocations: 365.6 kB / 476.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004239/0.2687, allocations: 1.432 MB / 478.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.2693, allocations: 135.7 kB / 478.4 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003535/0.2728, allocations: 2.493 MB / 480.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.2743, allocations: 0.9008 MB / 481.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001913/0.2762, allocations: 0.8923 MB / 482.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002332/0.2785, allocations: 1.301 MB / 484 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000762/0.2793, allocations: 228.5 kB / 484.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002016/0.2813, allocations: 0.836 MB / 485.1 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001536/0.2829, allocations: 1.205 MB / 486.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002473/0.2854, allocations: 1.546 MB / 487.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006373/0.2918, allocations: 4.973 MB / 492.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2918, allocations: 1.031 kB / 492.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2918, allocations: 0 / 492.8 MB, free: 32 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001789/0.292, allocations: 0 / 492.8 MB, free: 32 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.01117/0.3032, allocations: 3.917 MB / 496.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3032, allocations: 8.031 kB / 496.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00139/0.3046, allocations: 0.5346 MB / 497.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007158/0.3118, allocations: 1.781 MB / 499 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002903/0.3147, allocations: 1.361 MB / 0.4887 GB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.3149, allocations: 152 kB / 0.4888 GB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007252/0.3156, allocations: 195.8 kB / 0.489 GB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/0.3284, allocations: 7.906 MB / 0.4967 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.3286, allocations: 23.83 kB / 0.4967 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004584/0.329, allocations: 87.88 kB / 0.4968 GB, free: 488 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003142/0.3322, allocations: 1.852 MB / 0.4986 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01466/0.3469, allocations: 7.125 MB / 0.5056 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03875/0.3856, allocations: 23.87 MB / 0.5289 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005706/0.3914, allocations: 2.372 MB / 0.5312 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.3928, allocations: 0.8164 MB / 0.532 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007574/0.4004, allocations: 4.597 MB / 0.5365 GB, free: 6.828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/0.4005, allocations: 47.55 kB / 0.5366 GB, free: 6.773 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 4.338e-06/0.4005, allocations: 4 kB / 0.5366 GB, free: 6.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01683/0.4173, allocations: 7.114 MB / 0.5435 GB, free: 15.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.4175, allocations: 68.72 kB / 0.5436 GB, free: 15.49 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005447/0.4229, allocations: 2.612 MB / 0.5461 GB, free: 12.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.4231, allocations: 45.7 kB / 0.5462 GB, free: 12.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001648/0.4248, allocations: 2.133 MB / 0.5483 GB, free: 10.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006735/0.4255, allocations: 0.593 MB / 0.5488 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001504/0.427, allocations: 0.7785 MB / 0.5496 GB, free: 9.258 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4271, allocations: 301.1 kB / 0.5499 GB, free: 8.961 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.4295, allocations: 1.28 MB / 0.5511 GB, free: 7.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003709/0.4332, allocations: 3.374 MB / 0.5544 GB, free: 3.285 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006087/0.4393, allocations: 4.998 MB / 0.5593 GB, free: 13.27 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.273e-05/0.4394, allocations: 24 kB / 0.5593 GB, free: 13.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009062/0.4484, allocations: 4.824 MB / 0.564 GB, free: 8.414 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.395e-05/0.4486, allocations: 38.19 kB / 0.5641 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/0.4487, allocations: 76 kB / 0.5642 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.4498, allocations: 352.6 kB / 0.5645 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00289/0.4527, allocations: 0.8499 MB / 0.5653 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005068/0.4577, allocations: 3.645 MB / 0.5689 GB, free: 3.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/0.4607, allocations: 200 kB / 0.5691 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000595/0.4613, allocations: 228.2 kB / 0.5693 GB, free: 2.902 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.003178/0.4645, allocations: 1.546 MB / 0.5708 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.4651, allocations: 230.5 kB / 0.571 GB, free: 1.117 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003889/0.469, allocations: 2.009 MB / 0.573 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/0.4691, allocations: 31.97 kB / 0.573 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.4691, allocations: 8.062 kB / 0.573 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.4691, allocations: 3.984 kB / 0.573 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.4806, allocations: 5.651 MB / 0.5785 GB, free: 9.273 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.4806, allocations: 4 kB / 0.5785 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000849/0.4815, allocations: 207.7 kB / 0.5787 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007133/0.4822, allocations: 244.6 kB / 0.579 GB, free: 8.824 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.4823, allocations: 28 kB / 0.579 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003672/0.486, allocations: 2.948 MB / 0.5819 GB, free: 5.715 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.486, allocations: 8.062 kB / 0.5819 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005017/0.4911, allocations: 3.098 MB / 0.5849 GB, free: 2.551 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008349/0.4919, allocations: 311.5 kB / 0.5852 GB, free: 2.227 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006268/0.4926, allocations: 24 kB / 0.5852 GB, free: 2.203 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.4938, allocations: 67.91 kB / 0.5853 GB, free: 2.137 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.4941, allocations: 88.83 kB / 0.5854 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.4942, allocations: 43.98 kB / 0.5854 GB, free: 2.008 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003674/0.4979, allocations: 1.679 MB / 0.5871 GB, free: 320 kB / 462.1 MB Notification: Performance of sort global known variables: time 2.445e-06/0.4979, allocations: 0 / 0.5871 GB, free: 320 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.2325/0.7304, allocations: 0.6844 MB / 0.5877 GB, free: 111.7 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.005304/0.7358, allocations: 3.736 MB / 0.5914 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006141/0.7419, allocations: 3.149 MB / 0.5945 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.742, allocations: 0 / 0.5945 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001727/0.7437, allocations: 1.029 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.002312/0.746, allocations: 394.4 kB / 0.5958 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0366/0.7827, allocations: 27.42 MB / 0.6226 GB, free: 92.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002351/0.7851, allocations: 2.555 MB / 0.6251 GB, free: 91.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0023/0.7874, allocations: 1.178 MB / 0.6263 GB, free: 91.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.7887, allocations: 1.291 MB / 0.6275 GB, free: 90.06 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7887, allocations: 0 / 0.6275 GB, free: 90.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06744/0.8561, allocations: 46.79 MB / 0.6732 GB, free: 43.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/16.36, allocations: 7.938 kB / 0.6732 GB, free: 43.83 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)