Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.0007781/0.0007781, 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.001257/0.001257, allocations: 170.3 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.9041/0.9041, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.02748/0.02748, allocations: 7.12 MB / 266.3 MB, free: 6.328 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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.438e-05/1.585e-05, allocations: 2.281 kB / 392.4 MB, free: 3.977 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.005942/0.005958, allocations: 7.328 MB / 399.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004091/0.01005, allocations: 2.511 MB / 402.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005748/0.01062, allocations: 39.88 kB / 402.3 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005764/0.0112, allocations: 377.4 kB / 402.6 MB, free: 9.68 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002082/0.01328, allocations: 1.485 MB / 404.1 MB, free: 8.188 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.01351, allocations: 127.8 kB / 404.2 MB, free: 8.062 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001906/0.01541, allocations: 2.542 MB / 406.8 MB, free: 5.52 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007925/0.01621, allocations: 0.7375 MB / 407.5 MB, free: 4.762 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.01739, allocations: 1.36 MB / 408.9 MB, free: 3.398 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001193/0.01858, allocations: 1.305 MB / 410.2 MB, free: 2.09 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003114/0.0189, allocations: 236 kB / 410.4 MB, free: 1.859 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008371/0.01973, allocations: 0.8229 MB / 411.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1512/0.171, allocations: 1.253 MB / 412.5 MB, free: 17.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.1725, allocations: 0.8141 MB / 413.3 MB, free: 17.76 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005065/0.1776, allocations: 4.934 MB / 418.2 MB, free: 17.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1776, allocations: 0 / 418.2 MB, free: 17.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.1776, allocations: 0 / 418.2 MB, free: 17.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.172e-05/0.1776, allocations: 0 / 418.2 MB, free: 17.53 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.006448/0.1841, allocations: 3.864 MB / 422.1 MB, free: 16.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1841, allocations: 9.906 kB / 422.1 MB, free: 16.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004914/0.1846, allocations: 0.5299 MB / 422.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003589/0.1882, allocations: 1.861 MB / 424.5 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.1898, allocations: 1.293 MB / 425.8 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.58e-05/0.1899, allocations: 148.7 kB / 425.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/0.1902, allocations: 193 kB / 426.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00662/0.1968, allocations: 7.878 MB / 434 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.605e-05/0.1968, allocations: 32.34 kB / 434 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.1971, allocations: 97.48 kB / 434.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001472/0.1985, allocations: 1.843 MB / 436 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006626/0.2052, allocations: 7.052 MB / 443 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.2222, allocations: 22.46 MB / 465.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.2251, allocations: 1.91 MB / 467.4 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007248/0.2259, allocations: 0.751 MB / 468.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003357/0.2292, allocations: 2.968 MB / 471.1 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.2292, allocations: 43.59 kB / 471.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=129): time 2.294e-06/0.2292, allocations: 0 / 471.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=153): time 0.008758/0.238, allocations: 6.891 MB / 478.1 MB, free: 3.133 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.238, allocations: 64.72 kB / 478.1 MB, free: 3.059 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002597/0.2406, allocations: 2.708 MB / 480.8 MB, free: 328 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.2407, allocations: 41.7 kB / 480.9 MB, free: 280 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009467/0.2416, allocations: 2.128 MB / 483 MB, free: 14.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003079/0.242, allocations: 0.586 MB / 483.6 MB, free: 13.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006901/0.2426, allocations: 0.7647 MB / 484.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.2427, allocations: 309.1 kB / 484.7 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.244, allocations: 1.272 MB / 485.9 MB, free: 11.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002244/0.2462, allocations: 3.368 MB / 489.3 MB, free: 6.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003664/0.2499, allocations: 4.981 MB / 494.3 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-05/0.2499, allocations: 27.94 kB / 494.3 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.004745/0.2546, allocations: 4.809 MB / 499.1 MB, free: 12.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.2547, allocations: 40 kB / 499.1 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.212e-05/0.2547, allocations: 72 kB / 499.2 MB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004677/0.2552, allocations: 325.6 kB / 499.5 MB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.2568, allocations: 0.8467 MB / 0.4887 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/0.2597, allocations: 3.519 MB / 0.4921 GB, free: 7.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.2611, allocations: 202.4 kB / 0.4923 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.2613, allocations: 230.8 kB / 0.4925 GB, free: 6.844 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * 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.002085/0.2634, allocations: 1.552 MB / 0.494 GB, free: 5.281 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.2636, allocations: 230.5 kB / 0.4942 GB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.2658, allocations: 1.974 MB / 0.4962 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-05/0.2659, allocations: 23.98 kB / 0.4962 GB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2659, allocations: 7.938 kB / 0.4962 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.2659, allocations: 7.969 kB / 0.4962 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005532/0.2714, allocations: 5.32 MB / 0.5014 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.2714, allocations: 7.984 kB / 0.5014 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004171/0.2718, allocations: 195.8 kB / 0.5016 GB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003299/0.2722, allocations: 228.2 kB / 0.5018 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.2722, allocations: 28 kB / 0.5018 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002232/0.2744, allocations: 2.818 MB / 0.5046 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2744, allocations: 4 kB / 0.5046 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.2771, allocations: 3.066 MB / 0.5076 GB, free: 7.129 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.2774, allocations: 226.5 kB / 0.5078 GB, free: 6.906 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.2776, allocations: 27.17 kB / 0.5078 GB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.278, allocations: 74.02 kB / 0.5079 GB, free: 6.812 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.2781, allocations: 96.7 kB / 0.508 GB, free: 6.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.2781, allocations: 44 kB / 0.508 GB, free: 6.676 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001573/0.2797, allocations: 1.663 MB / 0.5097 GB, free: 4.996 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2797, allocations: 4 kB / 0.5097 GB, free: 4.992 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001905/0.2816, allocations: 0.6649 MB / 0.5103 GB, free: 4.328 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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.003/0.2846, allocations: 3.702 MB / 0.5139 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003123/0.2877, allocations: 3.012 MB / 0.5169 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2877, allocations: 0 / 0.5169 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.2886, allocations: 0.9583 MB / 0.5178 GB, free: 12.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.2896, allocations: 399.8 kB / 0.5182 GB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02429/0.3139, allocations: 27.2 MB / 0.5447 GB, free: 14.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001649/0.3156, allocations: 1.995 MB / 0.5467 GB, free: 12.24 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001527/0.3171, allocations: 1.176 MB / 0.5478 GB, free: 11.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.3182, allocations: 1.297 MB / 0.5491 GB, free: 9.758 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3182, allocations: 4 kB / 0.5491 GB, free: 9.754 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1986/0.5167, allocations: 47.63 MB / 0.5956 GB, free: 153.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.487/9.004, allocations: 7.922 kB / 0.5956 GB, free: 153.5 MB / 474.7 MB " [Timeout remaining time 651] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.79831837117672] Failed to read output from testmodel.py, exit status != 0: 9.108693582005799 9.114813352 8.935944373 Calling exit ...