Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",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.001238/0.001238, allocations: 108 kB / 15.61 MB, free: 148 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.001274/0.001273, allocations: 195.8 kB / 16.53 MB, free: 6.656 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1617/0.1617, allocations: 9.094 MB / 299.5 MB, free: 1.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 55.91 kB / 362 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1512, allocations: 51.44 MB / 413.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2743/0.4255, allocations: 14.38 MB / 427.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.4363, allocations: 4.647 MB / 432.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003811/0.4402, allocations: 76.03 kB / 432.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004076/0.4443, allocations: 1.605 MB / 434.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00726/0.4516, allocations: 2.559 MB / 436.7 MB, free: 33.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001664/0.4533, allocations: 0.5742 MB / 437.3 MB, free: 33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006955/0.4603, allocations: 5.166 MB / 442.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003784/0.4641, allocations: 2.969 MB / 445.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003156/0.4673, allocations: 1.776 MB / 447.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003753/0.471, allocations: 2.504 MB / 449.7 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001484/0.4726, allocations: 383.3 kB / 450.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003107/0.4757, allocations: 1.19 MB / 451.3 MB, free: 27.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002589/0.4783, allocations: 2.293 MB / 453.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00438/0.4827, allocations: 2.826 MB / 456.4 MB, free: 24.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01505/0.4978, allocations: 8.363 MB / 464.8 MB, free: 21.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.4978, allocations: 4 kB / 464.8 MB, free: 21.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4978, allocations: 1.125 kB / 464.8 MB, free: 21.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00042/0.4983, allocations: 0.7031 kB / 464.8 MB, free: 21.61 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: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.0262/0.5245, allocations: 6.574 MB / 471.4 MB, free: 18.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/0.5246, allocations: 9.875 kB / 471.4 MB, free: 18.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004496/0.5291, allocations: 0.9536 MB / 472.3 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01532/0.5444, allocations: 3.409 MB / 475.7 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008795/0.5532, allocations: 3.063 MB / 478.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000425/0.5537, allocations: 272.2 kB / 479.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002607/0.5563, allocations: 354.4 kB / 479.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0305/0.5868, allocations: 14.03 MB / 493.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00019/0.5871, allocations: 59.45 kB / 493.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001048/0.5882, allocations: 179.8 kB / 493.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00508/0.5932, allocations: 3.136 MB / 496.8 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02788/0.6212, allocations: 12.2 MB / 0.4971 GB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08826/0.7095, allocations: 52.07 MB / 0.5479 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/0.7215, allocations: 5.074 MB / 0.5529 GB, free: 9.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/0.7248, allocations: 1.799 MB / 0.5546 GB, free: 7.352 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01755/0.7424, allocations: 8.011 MB / 0.5625 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.177e-05/0.7425, allocations: 59.88 kB / 0.5625 GB, free: 14.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 7.534e-06/0.7425, allocations: 0 / 0.5625 GB, free: 14.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.04321/0.7857, allocations: 14.47 MB / 0.5767 GB, free: 384 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.7859, allocations: 154.5 kB / 0.5768 GB, free: 200 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3033/1.089, allocations: 5.389 MB / 0.5821 GB, free: 125.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000632/1.09, allocations: 64.09 kB / 0.5821 GB, free: 125.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002949/1.093, allocations: 4.103 MB / 0.5861 GB, free: 122.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.094, allocations: 1.037 MB / 0.5871 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002379/1.097, allocations: 1.631 MB / 0.5887 GB, free: 121.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/1.097, allocations: 309 kB / 0.589 GB, free: 121 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003979/1.101, allocations: 2.537 MB / 0.5915 GB, free: 120.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007138/1.108, allocations: 7.357 MB / 0.5987 GB, free: 113 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01267/1.121, allocations: 10.74 MB / 0.6092 GB, free: 103.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002454/1.121, allocations: 50.53 kB / 0.6092 GB, free: 103.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02428/1.145, allocations: 9.894 MB / 0.6189 GB, free: 100.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002228/1.146, allocations: 77.09 kB / 0.619 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004239/1.146, allocations: 168.2 kB / 0.6191 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/1.147, allocations: 0.4942 MB / 0.6196 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007663/1.155, allocations: 1.849 MB / 0.6214 GB, free: 99.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006251/1.161, allocations: 5.299 MB / 0.6266 GB, free: 95.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00951/1.171, allocations: 422 kB / 0.627 GB, free: 95.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003119/1.174, allocations: 495.2 kB / 0.6275 GB, free: 95.71 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1004): * Single equations (assignments): 994 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00774/1.182, allocations: 2.849 MB / 0.6302 GB, free: 94.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/1.183, allocations: 467.3 kB / 0.6307 GB, free: 94.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005664/1.189, allocations: 2.969 MB / 0.6336 GB, free: 92.94 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.993e-05/1.189, allocations: 32.14 kB / 0.6336 GB, free: 92.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/1.189, allocations: 3.938 kB / 0.6336 GB, free: 92.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.889e-05/1.189, allocations: 14.92 kB / 0.6336 GB, free: 92.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01953/1.209, allocations: 9.122 MB / 0.6425 GB, free: 88.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/1.209, allocations: 8 kB / 0.6426 GB, free: 88.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.21, allocations: 380.1 kB / 0.6429 GB, free: 88.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006975/1.211, allocations: 269.4 kB / 0.6432 GB, free: 88.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/1.211, allocations: 55.8 kB / 0.6432 GB, free: 88.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003654/1.215, allocations: 4.379 MB / 0.6475 GB, free: 84.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/1.215, allocations: 11.94 kB / 0.6475 GB, free: 84.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007338/1.222, allocations: 5.651 MB / 0.653 GB, free: 78.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001711/1.224, allocations: 0.5014 MB / 0.6535 GB, free: 78.31 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009151/1.225, allocations: 51.09 kB / 0.6536 GB, free: 78.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/1.227, allocations: 106.3 kB / 0.6537 GB, free: 78.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/1.227, allocations: 166.5 kB / 0.6538 GB, free: 78.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/1.227, allocations: 72 kB / 0.6539 GB, free: 78.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006003/1.233, allocations: 3.402 MB / 0.6572 GB, free: 75.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.72e-07/1.233, allocations: 0 / 0.6572 GB, free: 75.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00997/1.243, allocations: 1.26 MB / 0.6585 GB, free: 73.95 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.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 (207): * Single equations (assignments): 199 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00772/1.251, allocations: 6.315 MB / 0.6646 GB, free: 68.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01446/1.265, allocations: 8.726 MB / 0.6731 GB, free: 59.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/1.266, allocations: 0 / 0.6731 GB, free: 59.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002475/1.268, allocations: 1.81 MB / 0.6749 GB, free: 57.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004266/1.272, allocations: 0.6434 MB / 0.6755 GB, free: 57.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0975/1.37, allocations: 68.58 MB / 0.7425 GB, free: 10.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007756/1.378, allocations: 4.229 MB / 0.7466 GB, free: 6.051 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00786/1.386, allocations: 2.712 MB / 0.7493 GB, free: 3.328 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005678/1.391, allocations: 2.612 MB / 0.7518 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of SimCode: time 1.443e-06/1.391, allocations: 0 / 0.7518 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4365/1.828, allocations: 90.94 MB / 0.8406 GB, free: 94.08 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/14.1, allocations: 12.06 kB / 0.8407 GB, free: 94.07 MB / 478.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D_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_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)