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.004752/0.004752, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001295/0.001295, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1606/0.1606, allocations: 9.108 MB / 299.6 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 63.89 kB / 414.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2335, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01194/0.2455, allocations: 14.38 MB / 480 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008569/0.2541, allocations: 4.637 MB / 484.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.2564, allocations: 76.12 kB / 484.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002773/0.2592, allocations: 1.609 MB / 486.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006029/0.2653, allocations: 2.569 MB / 488.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.2665, allocations: 0.5709 MB / 489.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00761/0.2742, allocations: 5.185 MB / 494.6 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00464/0.2788, allocations: 2.962 MB / 497.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004285/0.2831, allocations: 1.785 MB / 499.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004264/0.2874, allocations: 2.503 MB / 0.4901 GB, free: 7.816 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009846/0.2884, allocations: 380 kB / 0.4905 GB, free: 7.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002863/0.2913, allocations: 1.194 MB / 0.4916 GB, free: 6.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002605/0.2939, allocations: 2.287 MB / 0.4939 GB, free: 3.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003789/0.2977, allocations: 2.819 MB / 0.4966 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.013/0.3108, allocations: 8.82 MB / 0.5052 GB, free: 8.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3108, allocations: 0 / 0.5052 GB, free: 8.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3108, allocations: 0 / 0.5052 GB, free: 8.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002837/0.3111, allocations: 4 kB / 0.5052 GB, free: 8.262 MB / 382.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.01673/0.3278, allocations: 6.748 MB / 0.5118 GB, free: 1.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.3279, allocations: 8.031 kB / 0.5118 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001727/0.3296, allocations: 0.9525 MB / 0.5128 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01346/0.3431, allocations: 3.436 MB / 0.5161 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007017/0.3502, allocations: 3.115 MB / 0.5191 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.3505, allocations: 274.7 kB / 0.5194 GB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.3519, allocations: 363.7 kB / 0.5198 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02467/0.3765, allocations: 14.03 MB / 0.5335 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001599/0.3767, allocations: 63.5 kB / 0.5335 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005846/0.3773, allocations: 171.8 kB / 0.5337 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005275/0.3826, allocations: 3.132 MB / 0.5367 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02521/0.4078, allocations: 12.2 MB / 0.5487 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2846/0.6925, allocations: 51.89 MB / 0.5993 GB, free: 74.05 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.7039, allocations: 5.064 MB / 0.6043 GB, free: 72.88 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003145/0.7071, allocations: 1.802 MB / 0.606 GB, free: 72.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01497/0.7221, allocations: 8.033 MB / 0.6139 GB, free: 69.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.7222, allocations: 59.19 kB / 0.6139 GB, free: 69.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 6.643e-06/0.7222, allocations: 2.844 kB / 0.6139 GB, free: 69.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03407/0.7563, allocations: 14.78 MB / 0.6284 GB, free: 62.87 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.7564, allocations: 154.3 kB / 0.6285 GB, free: 62.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007632/0.764, allocations: 5.404 MB / 0.6338 GB, free: 60.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003077/0.7644, allocations: 68.91 kB / 0.6339 GB, free: 60.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002026/0.7664, allocations: 4.262 MB / 0.638 GB, free: 57.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008718/0.7673, allocations: 1.078 MB / 0.6391 GB, free: 56.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002078/0.7694, allocations: 1.649 MB / 0.6407 GB, free: 55.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.921e-05/0.7694, allocations: 301.1 kB / 0.641 GB, free: 55.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003399/0.7728, allocations: 2.539 MB / 0.6434 GB, free: 54.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005183/0.778, allocations: 7.36 MB / 0.6506 GB, free: 46.69 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009018/0.7871, allocations: 10.74 MB / 0.6611 GB, free: 35.84 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/0.7872, allocations: 51.94 kB / 0.6612 GB, free: 35.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01498/0.8022, allocations: 9.936 MB / 0.6709 GB, free: 25.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.8024, allocations: 80 kB / 0.671 GB, free: 25.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002137/0.8026, allocations: 168 kB / 0.6711 GB, free: 25.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.8037, allocations: 497.9 kB / 0.6716 GB, free: 25.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005297/0.809, allocations: 1.84 MB / 0.6734 GB, free: 23.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004429/0.8134, allocations: 5.309 MB / 0.6786 GB, free: 17.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/0.819, allocations: 422.8 kB / 0.679 GB, free: 17.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000974/0.82, allocations: 492 kB / 0.6794 GB, free: 16.79 MB / 462.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.004248/0.8243, allocations: 2.848 MB / 0.6822 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009989/0.8253, allocations: 488.7 kB / 0.6827 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.8296, allocations: 2.971 MB / 0.6856 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.212e-05/0.8297, allocations: 32 kB / 0.6856 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.8297, allocations: 4 kB / 0.6856 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.8297, allocations: 11.95 kB / 0.6856 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.8443, allocations: 9.083 MB / 0.6945 GB, free: 1.207 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-05/0.8443, allocations: 8 kB / 0.6945 GB, free: 1.199 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/0.8459, allocations: 384.2 kB / 0.6949 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006907/0.8466, allocations: 276 kB / 0.6951 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002152/0.8468, allocations: 54.55 kB / 0.6952 GB, free: 0.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004885/0.8517, allocations: 4.373 MB / 0.6995 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/0.8518, allocations: 11.94 kB / 0.6995 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008815/0.8606, allocations: 5.675 MB / 0.705 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/0.8624, allocations: 0.5292 MB / 0.7055 GB, free: 5.461 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009665/0.8633, allocations: 55.19 kB / 0.7056 GB, free: 5.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001955/0.8653, allocations: 107.9 kB / 0.7057 GB, free: 5.305 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003391/0.8657, allocations: 165.5 kB / 0.7058 GB, free: 5.145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/0.8658, allocations: 83.27 kB / 0.7059 GB, free: 5.066 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005609/0.8715, allocations: 3.389 MB / 0.7092 GB, free: 1.691 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8715, allocations: 0 / 0.7092 GB, free: 1.691 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006022/0.8775, allocations: 1.258 MB / 0.7105 GB, free: 444 kB / 478.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.008844/0.8864, allocations: 6.353 MB / 0.7167 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01106/0.8975, allocations: 6.205 MB / 0.7227 GB, free: 3.734 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/0.8975, allocations: 0 / 0.7227 GB, free: 3.734 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002968/0.9005, allocations: 1.812 MB / 0.7245 GB, free: 1.906 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004032/0.9045, allocations: 0.6445 MB / 0.7251 GB, free: 1.273 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0996/1.004, allocations: 58.66 MB / 0.7824 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005662/1.01, allocations: 4.235 MB / 0.7865 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006315/1.016, allocations: 2.712 MB / 0.7892 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004496/1.021, allocations: 2.612 MB / 0.7917 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of SimCode: time 2.805e-06/1.021, allocations: 0 / 0.7917 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3605/1.381, allocations: 85.79 MB / 0.8755 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.36/22.74, allocations: 7.031 kB / 0.8755 GB, free: 152.5 MB / 0.5606 GB (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)