Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.0007987/0.0007987, 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.000831/0.000831, 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.909/0.909, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.02724/0.02724, allocations: 7.124 MB / 266.3 MB, free: 6.301 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.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.559e-05, allocations: 6.219 kB / 392.4 MB, free: 3.973 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.006222/0.006248, allocations: 7.771 MB / 400.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004462/0.01071, allocations: 2.596 MB / 402.8 MB, free: 9.555 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009914/0.0117, allocations: 43.81 kB / 402.8 MB, free: 9.512 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007483/0.01245, allocations: 385.3 kB / 403.2 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002675/0.01512, allocations: 1.52 MB / 404.7 MB, free: 7.605 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.01548, allocations: 167.6 kB / 404.9 MB, free: 7.441 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002346/0.01783, allocations: 2.671 MB / 407.5 MB, free: 4.762 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.01901, allocations: 0.8128 MB / 408.3 MB, free: 3.926 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.02073, allocations: 1.434 MB / 409.8 MB, free: 2.488 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001414/0.02215, allocations: 1.34 MB / 411.1 MB, free: 1.145 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003991/0.02255, allocations: 240 kB / 411.4 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001076/0.02362, allocations: 0.8385 MB / 412.2 MB, free: 72 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1604/0.184, allocations: 1.269 MB / 413.5 MB, free: 18.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00136/0.1853, allocations: 0.8477 MB / 414.3 MB, free: 18.03 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005976/0.1913, allocations: 5.054 MB / 419.4 MB, free: 17.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1913, allocations: 0 / 419.4 MB, free: 17.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1913, allocations: 3.938 kB / 419.4 MB, free: 17.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001674/0.1915, allocations: 1.25 kB / 419.4 MB, free: 17.74 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.009605/0.2011, allocations: 3.973 MB / 423.3 MB, free: 16.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.2012, allocations: 9.844 kB / 423.4 MB, free: 16.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008911/0.202, allocations: 0.5423 MB / 423.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00401/0.2061, allocations: 1.874 MB / 425.8 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002696/0.2087, allocations: 1.345 MB / 427.1 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.2089, allocations: 155.4 kB / 427.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004629/0.2093, allocations: 203 kB / 427.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01211/0.2214, allocations: 7.979 MB / 435.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.26e-05/0.2215, allocations: 32.38 kB / 435.5 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002317/0.2218, allocations: 100.2 kB / 435.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001716/0.2235, allocations: 1.838 MB / 437.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01004/0.2335, allocations: 7.106 MB / 444.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02543/0.2589, allocations: 22.96 MB / 467.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/0.2622, allocations: 1.922 MB / 469.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000786/0.263, allocations: 0.7665 MB / 470.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003926/0.2669, allocations: 3.008 MB / 473.2 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.267, allocations: 44.78 kB / 473.2 MB, free: 8.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=131): time 3.226e-06/0.267, allocations: 0 / 473.2 MB, free: 8.309 MB / 362.7 MB Notification: Performance of matching and sorting (n=153): time 0.008734/0.2757, allocations: 6.842 MB / 480.1 MB, free: 1.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.2757, allocations: 64.72 kB / 480.1 MB, free: 1.391 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/0.2788, allocations: 2.796 MB / 482.9 MB, free: 14.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.499e-05/0.2789, allocations: 45.7 kB / 483 MB, free: 14.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009551/0.2798, allocations: 2.173 MB / 485.1 MB, free: 12.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00034/0.2802, allocations: 0.5859 MB / 485.7 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007132/0.2809, allocations: 0.7823 MB / 486.5 MB, free: 10.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.842e-05/0.281, allocations: 301.1 kB / 486.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.2824, allocations: 1.298 MB / 488.1 MB, free: 9.387 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002339/0.2847, allocations: 3.426 MB / 491.5 MB, free: 4.938 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003977/0.2887, allocations: 5.051 MB / 496.6 MB, free: 14.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-05/0.2887, allocations: 27.94 kB / 496.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.005409/0.2941, allocations: 4.9 MB / 0.4897 GB, free: 10.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.2942, allocations: 36 kB / 0.4898 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-05/0.2942, allocations: 76 kB / 0.4899 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004865/0.2947, allocations: 313.1 kB / 0.4901 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/0.2963, allocations: 0.8617 MB / 0.491 GB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.2994, allocations: 3.514 MB / 0.4944 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.3013, allocations: 203.9 kB / 0.4946 GB, free: 4.918 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002673/0.3016, allocations: 236 kB / 0.4948 GB, free: 4.688 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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.0022/0.3038, allocations: 1.571 MB / 0.4964 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000287/0.3041, allocations: 242.4 kB / 0.4966 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.3064, allocations: 1.99 MB / 0.4986 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.198e-05/0.3065, allocations: 27.98 kB / 0.4986 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3065, allocations: 4 kB / 0.4986 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3065, allocations: 7.969 kB / 0.4986 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006486/0.313, allocations: 5.364 MB / 0.5038 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.313, allocations: 0 / 0.5038 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004933/0.3135, allocations: 203.7 kB / 0.504 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003829/0.3139, allocations: 220 kB / 0.5042 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.21e-05/0.3139, allocations: 27.98 kB / 0.5043 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.3163, allocations: 2.824 MB / 0.507 GB, free: 8.016 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3163, allocations: 0 / 0.507 GB, free: 8.016 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002988/0.3193, allocations: 3.089 MB / 0.51 GB, free: 4.887 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007107/0.32, allocations: 390.4 kB / 0.5104 GB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.3202, allocations: 24 kB / 0.5104 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.3206, allocations: 67.86 kB / 0.5105 GB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.3208, allocations: 88.77 kB / 0.5106 GB, free: 4.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-05/0.3208, allocations: 50.88 kB / 0.5106 GB, free: 4.277 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002199/0.323, allocations: 1.709 MB / 0.5123 GB, free: 2.555 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.323, allocations: 0 / 0.5123 GB, free: 2.555 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00213/0.3251, allocations: 0.6757 MB / 0.513 GB, free: 1.879 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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.003151/0.3283, allocations: 3.723 MB / 0.5166 GB, free: 14.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003615/0.3319, allocations: 3.052 MB / 0.5196 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3319, allocations: 0 / 0.5196 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009243/0.3328, allocations: 0.9689 MB / 0.5205 GB, free: 10.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.3341, allocations: 416.1 kB / 0.5209 GB, free: 9.684 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03179/0.3659, allocations: 27.81 MB / 0.5481 GB, free: 11.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/0.3679, allocations: 2.038 MB / 0.5501 GB, free: 9.039 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001779/0.3697, allocations: 1.185 MB / 0.5512 GB, free: 7.848 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/0.3711, allocations: 1.344 MB / 0.5525 GB, free: 6.504 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3711, allocations: 0 / 0.5525 GB, free: 6.504 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2207/0.5918, allocations: 49.02 MB / 0.6004 GB, free: 149.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.947/9.539, allocations: 8 kB / 0.6004 GB, free: 149.4 MB / 474.7 MB " [Timeout remaining time 650] (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab_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_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.405222343280911] Failed to read output from testmodel.py, exit status != 0: 9.647561750374734 9.657556183 9.464653592 Calling exit ...