Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.0009182/0.0009182, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001225/0.001225, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9162/0.9162, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.02943/0.02943, allocations: 7.125 MB / 266.3 MB, free: 6.309 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.191e-05/2.366e-05, allocations: 5.234 kB / 392.4 MB, free: 3.977 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.006896/0.006919, allocations: 7.65 MB / 400 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005248/0.01217, allocations: 2.53 MB / 402.6 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.01338, allocations: 39.88 kB / 402.6 MB, free: 9.707 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.0146, allocations: 381.4 kB / 403 MB, free: 9.332 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002888/0.01749, allocations: 1.481 MB / 404.5 MB, free: 7.844 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.0178, allocations: 151.7 kB / 404.6 MB, free: 7.695 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.02025, allocations: 2.563 MB / 407.2 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009425/0.02119, allocations: 0.7713 MB / 407.9 MB, free: 4.336 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.0227, allocations: 1.383 MB / 409.3 MB, free: 2.949 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/0.02433, allocations: 1.321 MB / 410.7 MB, free: 1.625 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003646/0.0247, allocations: 236 kB / 410.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.02592, allocations: 0.8269 MB / 411.7 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1615/0.1875, allocations: 1.265 MB / 413 MB, free: 17.33 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00102/0.1885, allocations: 0.8221 MB / 413.8 MB, free: 17.33 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004358/0.1928, allocations: 4.978 MB / 418.8 MB, free: 17.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1928, allocations: 1.281 kB / 418.8 MB, free: 17.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1929, allocations: 0 / 418.8 MB, free: 17.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.957e-05/0.1929, allocations: 3.344 kB / 418.8 MB, free: 17.09 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.0063/0.1992, allocations: 3.896 MB / 422.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1993, allocations: 10.72 kB / 422.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005258/0.1998, allocations: 0.5441 MB / 423.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003796/0.2036, allocations: 1.861 MB / 425.1 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/0.2054, allocations: 1.306 MB / 426.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.059e-05/0.2055, allocations: 152.2 kB / 426.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/0.2058, allocations: 203.3 kB / 426.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007276/0.2131, allocations: 7.944 MB / 434.7 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.517e-05/0.2131, allocations: 29.89 kB / 434.7 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.2133, allocations: 99.44 kB / 434.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001409/0.2147, allocations: 1.852 MB / 436.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009607/0.2243, allocations: 7.093 MB / 443.8 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02561/0.25, allocations: 22.69 MB / 466.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/0.2535, allocations: 1.899 MB / 468.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009248/0.2544, allocations: 0.7663 MB / 469.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004636/0.259, allocations: 3.116 MB / 472.2 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.2591, allocations: 51.19 kB / 472.3 MB, free: 8.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 3.947e-06/0.2591, allocations: 0 / 472.3 MB, free: 8.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.01024/0.2693, allocations: 6.976 MB / 479.3 MB, free: 1.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.2694, allocations: 64.72 kB / 479.3 MB, free: 1.922 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/0.2725, allocations: 2.729 MB / 482 MB, free: 15.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.2727, allocations: 45.7 kB / 482.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009369/0.2736, allocations: 2.154 MB / 484.2 MB, free: 12.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.274, allocations: 0.5812 MB / 484.8 MB, free: 12.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006955/0.2747, allocations: 0.7773 MB / 485.6 MB, free: 11.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.751e-05/0.2748, allocations: 305.1 kB / 485.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.2762, allocations: 1.304 MB / 487.2 MB, free: 9.996 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.2785, allocations: 3.426 MB / 490.6 MB, free: 5.551 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004146/0.2827, allocations: 5.077 MB / 495.7 MB, free: 15.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.862e-05/0.2827, allocations: 24 kB / 495.7 MB, free: 15.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.005768/0.2885, allocations: 4.801 MB / 0.4888 GB, free: 10.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.2885, allocations: 41 kB / 0.4888 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.179e-05/0.2886, allocations: 72 kB / 0.4889 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.2889, allocations: 194.5 kB / 0.4891 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/0.2907, allocations: 0.9085 MB / 0.49 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001622/0.2923, allocations: 2.152 MB / 0.4921 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/0.2947, allocations: 215.7 kB / 0.4923 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003112/0.295, allocations: 232 kB / 0.4925 GB, free: 6.812 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002775/0.2978, allocations: 1.563 MB / 0.494 GB, free: 5.238 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.2982, allocations: 234.5 kB / 0.4943 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002277/0.3004, allocations: 1.925 MB / 0.4961 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.576e-05/0.3005, allocations: 32.45 kB / 0.4962 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3005, allocations: 0 / 0.4962 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.3005, allocations: 7.969 kB / 0.4962 GB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006511/0.307, allocations: 5.149 MB / 0.5012 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.307, allocations: 4.188 kB / 0.5012 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/0.3076, allocations: 247.6 kB / 0.5014 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.3077, allocations: 84.73 kB / 0.5015 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.516e-05/0.3078, allocations: 27.98 kB / 0.5016 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.309, allocations: 1.899 MB / 0.5034 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.309, allocations: 4 kB / 0.5034 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002996/0.312, allocations: 3.011 MB / 0.5063 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004595/0.3125, allocations: 230.5 kB / 0.5066 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.3126, allocations: 28 kB / 0.5066 GB, free: 8.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.3131, allocations: 75.91 kB / 0.5067 GB, free: 8.094 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.3132, allocations: 92.72 kB / 0.5068 GB, free: 8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.584e-05/0.3132, allocations: 43.03 kB / 0.5068 GB, free: 7.961 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001934/0.3152, allocations: 1.68 MB / 0.5084 GB, free: 6.266 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3152, allocations: 0 / 0.5084 GB, free: 6.266 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002038/0.3172, allocations: 0.6522 MB / 0.5091 GB, free: 5.613 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003537/0.3207, allocations: 3.656 MB / 0.5126 GB, free: 1.914 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.3247, allocations: 2.995 MB / 0.5156 GB, free: 14.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3247, allocations: 0 / 0.5156 GB, free: 14.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009085/0.3256, allocations: 0.9146 MB / 0.5165 GB, free: 14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.327, allocations: 397.3 kB / 0.5168 GB, free: 13.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03285/0.3599, allocations: 27.26 MB / 0.5435 GB, free: 15.65 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/0.3618, allocations: 1.997 MB / 0.5454 GB, free: 13.62 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001833/0.3636, allocations: 1.211 MB / 0.5466 GB, free: 12.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/0.3648, allocations: 1.289 MB / 0.5479 GB, free: 11.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.433e-06/0.3648, allocations: 0 / 0.5479 GB, free: 11.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2155/0.5803, allocations: 46.94 MB / 0.5937 GB, free: 153.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.025/9.605, allocations: 0 / 0.5937 GB, free: 153.8 MB / 474.7 MB " [Timeout remaining time 650] (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.48847843427211] Failed to read output from testmodel.py, exit status != 0: 9.714193294756114 9.721323614 9.526762284 Calling exit ...