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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008142/0.0008142, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009447/0.0009447, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8847/0.8847, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02734/0.02734, allocations: 7.124 MB / 266.3 MB, free: 6.324 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 392.4 MB, free: 4 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.271e-05, allocations: 2.281 kB / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01171/0.01173, allocations: 12.5 MB / 404.9 MB, free: 7.441 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006236/0.01796, allocations: 4.433 MB / 409.3 MB, free: 2.992 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009905/0.01896, allocations: 87.62 kB / 409.4 MB, free: 2.906 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00181/0.02077, allocations: 1.653 MB / 411.1 MB, free: 1.246 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1512/0.172, allocations: 2.675 MB / 413.7 MB, free: 14.85 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.1731, allocations: 0.6135 MB / 414.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005157/0.1783, allocations: 5.603 MB / 420 MB, free: 14.01 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002886/0.1811, allocations: 2.97 MB / 422.9 MB, free: 13.69 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.1841, allocations: 2.701 MB / 425.6 MB, free: 13 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.1864, allocations: 2.694 MB / 428.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000503/0.1869, allocations: 385.1 kB / 428.7 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.1886, allocations: 1.179 MB / 429.9 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001114/0.1897, allocations: 2.406 MB / 432.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.1909, allocations: 1.499 MB / 433.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00536/0.1963, allocations: 8.695 MB / 442.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1963, allocations: 0 / 442.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1963, allocations: 0 / 442.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001165/0.1964, allocations: 2.812 kB / 442.5 MB, free: 4.855 MB / 330.7 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.008423/0.2048, allocations: 6.671 MB / 449.1 MB, free: 14.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.2049, allocations: 12.62 kB / 449.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007818/0.2056, allocations: 0.9512 MB / 450.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006623/0.2123, allocations: 3.606 MB / 453.7 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003785/0.216, allocations: 2.773 MB / 456.5 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.2162, allocations: 277.2 kB / 456.8 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004426/0.2166, allocations: 355.2 kB / 457.1 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/0.2291, allocations: 14.04 MB / 471.1 MB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.108e-05/0.2292, allocations: 64.83 kB / 471.2 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003304/0.2295, allocations: 177.2 kB / 471.4 MB, free: 7.891 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002797/0.2323, allocations: 3.137 MB / 474.5 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0147/0.247, allocations: 12.16 MB / 486.7 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04016/0.2872, allocations: 49.75 MB / 0.5239 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006111/0.2933, allocations: 4.246 MB / 0.528 GB, free: 2.109 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.2949, allocations: 1.696 MB / 0.5297 GB, free: 420 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007958/0.3028, allocations: 6.52 MB / 0.536 GB, free: 9.922 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3028, allocations: 59.81 kB / 0.5361 GB, free: 9.855 MB / 442.7 MB Notification: Performance of pre-optimization done (n=242): time 3.827e-06/0.3028, allocations: 0 / 0.5361 GB, free: 9.855 MB / 442.7 MB Notification: Performance of matching and sorting (n=272): time 0.01925/0.3221, allocations: 15 MB / 0.5507 GB, free: 10.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.3222, allocations: 154.5 kB / 0.5509 GB, free: 10.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005567/0.3277, allocations: 5.818 MB / 0.5566 GB, free: 4.855 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.3278, allocations: 61.7 kB / 0.5566 GB, free: 4.789 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002056/0.3299, allocations: 4.22 MB / 0.5607 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006757/0.3306, allocations: 1.071 MB / 0.5618 GB, free: 15.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/0.332, allocations: 1.62 MB / 0.5634 GB, free: 13.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.219e-05/0.332, allocations: 301.1 kB / 0.5637 GB, free: 13.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/0.3345, allocations: 2.55 MB / 0.5661 GB, free: 11.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005264/0.3398, allocations: 7.369 MB / 0.5733 GB, free: 1.297 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1748/0.5146, allocations: 10.75 MB / 0.5838 GB, free: 135.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.825e-05/0.5147, allocations: 49.28 kB / 0.5839 GB, free: 135.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.0122/0.5269, allocations: 9.941 MB / 0.5936 GB, free: 131.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.985e-05/0.527, allocations: 78.05 kB / 0.5937 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001479/0.5271, allocations: 169.9 kB / 0.5938 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007437/0.5279, allocations: 483.7 kB / 0.5943 GB, free: 131.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003328/0.5312, allocations: 1.851 MB / 0.5961 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003439/0.5347, allocations: 5.07 MB / 0.601 GB, free: 128 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003317/0.538, allocations: 492 kB / 0.6015 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003454/0.5383, allocations: 496.9 kB / 0.602 GB, free: 127.8 MB / 474.7 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 {(3,16,88.9%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002579/0.5409, allocations: 2.854 MB / 0.6048 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003892/0.5413, allocations: 484.1 kB / 0.6052 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002655/0.5439, allocations: 2.957 MB / 0.6081 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.544, allocations: 38.16 kB / 0.6082 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.544, allocations: 7.094 kB / 0.6082 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.544, allocations: 15.08 kB / 0.6082 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008057/0.552, allocations: 8.669 MB / 0.6167 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.5521, allocations: 4 kB / 0.6167 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007959/0.5528, allocations: 390.2 kB / 0.617 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/0.5532, allocations: 240.8 kB / 0.6173 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.482e-05/0.5533, allocations: 48 kB / 0.6173 GB, free: 120.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/0.5553, allocations: 4.145 MB / 0.6214 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.5554, allocations: 8 kB / 0.6214 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003925/0.5593, allocations: 5.661 MB / 0.6269 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004742/0.5598, allocations: 486.6 kB / 0.6273 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.56, allocations: 51.8 kB / 0.6274 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008954/0.5609, allocations: 144.7 kB / 0.6275 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.5611, allocations: 169.1 kB / 0.6277 GB, free: 110.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-05/0.5612, allocations: 72 kB / 0.6278 GB, free: 110.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002827/0.564, allocations: 3.501 MB / 0.6312 GB, free: 107.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/0.564, allocations: 3.938 kB / 0.6312 GB, free: 107.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003563/0.5676, allocations: 1.293 MB / 0.6325 GB, free: 106.2 MB / 474.7 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.004173/0.5717, allocations: 6.349 MB / 0.6387 GB, free: 99.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005221/0.577, allocations: 5.971 MB / 0.6445 GB, free: 93.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.577, allocations: 4.312 kB / 0.6445 GB, free: 93.89 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.5782, allocations: 1.702 MB / 0.6462 GB, free: 92.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.58, allocations: 0.6477 MB / 0.6468 GB, free: 91.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04263/0.6227, allocations: 58.87 MB / 0.7043 GB, free: 25.41 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002601/0.6253, allocations: 3.72 MB / 0.7079 GB, free: 21.66 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00335/0.6286, allocations: 2.722 MB / 0.7106 GB, free: 18.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001725/0.6303, allocations: 2.617 MB / 0.7131 GB, free: 16.31 MB / 474.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6303, allocations: 0 / 0.7131 GB, free: 16.31 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2556/0.8859, allocations: 86.61 MB / 0.7977 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/12.05, allocations: 10.3 kB / 0.7977 GB, free: 150.2 MB / 0.4948 GB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.94290906470269] Failed to read output from testmodel.py, exit status != 0: 12.183652270585299 12.191461163 11.993783545 Calling exit ...