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.0009207/0.0009207, 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.001059/0.001059, 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.8848/0.8848, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.03097/0.03097, allocations: 7.108 MB / 266.3 MB, free: 6.32 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 1.803e-06/1.803e-06, allocations: 0 / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.619e-05, allocations: 2.281 kB / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.006692/0.006709, allocations: 7.771 MB / 400.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003741/0.01045, allocations: 2.6 MB / 402.8 MB, free: 9.566 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006024/0.01105, allocations: 39.88 kB / 402.8 MB, free: 9.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006243/0.01168, allocations: 381.3 kB / 403.2 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001918/0.01359, allocations: 1.52 MB / 404.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.01386, allocations: 171.6 kB / 404.9 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001843/0.01571, allocations: 2.672 MB / 407.5 MB, free: 4.781 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008195/0.01653, allocations: 0.8128 MB / 408.3 MB, free: 3.945 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.01779, allocations: 1.43 MB / 409.8 MB, free: 2.512 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.01897, allocations: 1.344 MB / 411.1 MB, free: 1.164 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000319/0.01929, allocations: 240 kB / 411.3 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008592/0.02015, allocations: 0.8346 MB / 412.2 MB, free: 96 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1448/0.1649, allocations: 1.275 MB / 413.5 MB, free: 18.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001092/0.166, allocations: 0.8456 MB / 414.3 MB, free: 18.03 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004106/0.1701, allocations: 5.055 MB / 419.4 MB, free: 17.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1701, allocations: 3.156 kB / 419.4 MB, free: 17.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1701, allocations: 5.156 kB / 419.4 MB, free: 17.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.626e-05/0.1702, allocations: 0 / 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.005369/0.1755, allocations: 3.965 MB / 423.3 MB, free: 16.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1756, allocations: 11.44 kB / 423.3 MB, free: 16.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004933/0.1761, allocations: 0.5406 MB / 423.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003623/0.1797, allocations: 1.87 MB / 425.8 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.1811, allocations: 1.355 MB / 427.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.061e-05/0.1812, allocations: 152.9 kB / 427.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003068/0.1815, allocations: 204.6 kB / 427.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006457/0.188, allocations: 7.977 MB / 435.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.648e-05/0.188, allocations: 27.7 kB / 435.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002118/0.1883, allocations: 102.5 kB / 435.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00139/0.1896, allocations: 1.851 MB / 437.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005987/0.1956, allocations: 7.1 MB / 444.5 MB, free: 5.148 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01724/0.2129, allocations: 22.97 MB / 467.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002947/0.2158, allocations: 1.922 MB / 469.4 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007793/0.2166, allocations: 0.7626 MB / 470.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003619/0.2202, allocations: 3.012 MB / 473.2 MB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.2202, allocations: 43.56 kB / 473.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=131): time 3.006e-06/0.2202, allocations: 0 / 473.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=153): time 0.008367/0.2286, allocations: 6.836 MB / 480.1 MB, free: 1.496 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.2286, allocations: 64.72 kB / 480.1 MB, free: 1.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002539/0.2312, allocations: 2.8 MB / 482.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.331e-05/0.2313, allocations: 45.7 kB / 483 MB, free: 14.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.2323, allocations: 2.179 MB / 485.1 MB, free: 12.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003033/0.2326, allocations: 0.58 MB / 485.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007853/0.2334, allocations: 0.7813 MB / 486.5 MB, free: 11.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.202e-05/0.2334, allocations: 305.1 kB / 486.8 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.2348, allocations: 1.292 MB / 488.1 MB, free: 9.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002328/0.2371, allocations: 3.424 MB / 491.5 MB, free: 4.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00396/0.2411, allocations: 5.056 MB / 496.6 MB, free: 14.97 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.16e-05/0.2411, allocations: 23.94 kB / 496.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.004818/0.2459, allocations: 4.904 MB / 0.4897 GB, free: 10.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.246, allocations: 36 kB / 0.4898 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-05/0.246, allocations: 76 kB / 0.4898 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004426/0.2465, allocations: 313 kB / 0.4901 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.2479, allocations: 0.8655 MB / 0.491 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/0.2507, allocations: 3.509 MB / 0.4944 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.252, allocations: 207.8 kB / 0.4946 GB, free: 4.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002018/0.2522, allocations: 228 kB / 0.4948 GB, free: 4.719 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.00172/0.2539, allocations: 1.572 MB / 0.4964 GB, free: 3.137 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.2542, allocations: 238.4 kB / 0.4966 GB, free: 2.902 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002316/0.2565, allocations: 2.001 MB / 0.4986 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.956e-05/0.2565, allocations: 30.64 kB / 0.4986 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2565, allocations: 4 kB / 0.4986 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.2565, allocations: 7.969 kB / 0.4986 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006102/0.2626, allocations: 5.355 MB / 0.5038 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2626, allocations: 0 / 0.5038 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004406/0.2631, allocations: 207.7 kB / 0.504 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003289/0.2634, allocations: 208.6 kB / 0.5042 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-05/0.2635, allocations: 32.02 kB / 0.5043 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.2658, allocations: 2.825 MB / 0.507 GB, free: 8.043 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.2658, allocations: 1.641 kB / 0.507 GB, free: 8.043 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002867/0.2687, allocations: 3.085 MB / 0.51 GB, free: 4.918 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005445/0.2693, allocations: 390.4 kB / 0.5104 GB, free: 4.535 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.2694, allocations: 24 kB / 0.5104 GB, free: 4.512 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004223/0.2698, allocations: 71.86 kB / 0.5105 GB, free: 4.441 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.27, allocations: 92.7 kB / 0.5106 GB, free: 4.348 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.023e-05/0.27, allocations: 47.11 kB / 0.5106 GB, free: 4.305 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002212/0.2722, allocations: 1.713 MB / 0.5123 GB, free: 2.578 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2722, allocations: 0 / 0.5123 GB, free: 2.578 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00205/0.2743, allocations: 0.6718 MB / 0.5129 GB, free: 1.906 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.003267/0.2775, allocations: 3.727 MB / 0.5166 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003576/0.2811, allocations: 3.044 MB / 0.5196 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2811, allocations: 0 / 0.5196 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008655/0.282, allocations: 0.9728 MB / 0.5205 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.2831, allocations: 409.8 kB / 0.5209 GB, free: 9.711 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0271/0.3102, allocations: 27.81 MB / 0.5481 GB, free: 11.13 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001862/0.312, allocations: 2.034 MB / 0.5501 GB, free: 9.062 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001676/0.3137, allocations: 1.192 MB / 0.5512 GB, free: 7.863 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/0.3151, allocations: 1.34 MB / 0.5525 GB, free: 6.523 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3151, allocations: 0 / 0.5525 GB, free: 6.523 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1997/0.5148, allocations: 49.02 MB / 0.6004 GB, free: 149.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.17/9.685, allocations: 4.062 kB / 0.6004 GB, free: 149.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.47009836602956] Failed to read output from testmodel.py, exit status != 0: 9.790541375987232 9.796701282 9.625258635 Calling exit ...