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.001395/0.001395, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.001705/0.001705, allocations: 218.1 kB / 22.25 MB, free: 5.125 MB / 14.72 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 1.678/1.678, allocations: 230.6 MB / 256 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] 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.05156/0.05156, allocations: 9.231 MB / 321.7 MB, free: 10.03 MB / 254.1 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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 67.84 kB / 447.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1396, allocations: 55.47 MB / 0.4914 GB, free: 7.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01255/0.1521, allocations: 8.707 MB / 0.4999 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007094/0.1592, allocations: 2.679 MB / 0.5025 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009016/0.1601, allocations: 35.88 kB / 0.5026 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008896/0.161, allocations: 373.4 kB / 0.5029 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003402/0.1644, allocations: 1.436 MB / 0.5043 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004204/0.1648, allocations: 147.7 kB / 0.5045 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003362/0.1682, allocations: 2.526 MB / 0.5069 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.1695, allocations: 0.7789 MB / 0.5077 GB, free: 6.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.1707, allocations: 0.9144 MB / 0.5086 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001936/0.1727, allocations: 1.436 MB / 0.51 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003667/0.173, allocations: 240 kB / 0.5102 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001526/0.1745, allocations: 0.8893 MB / 0.5111 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001327/0.1759, allocations: 1.234 MB / 0.5123 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001739/0.1776, allocations: 1.545 MB / 0.5138 GB, free: 460 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3218/0.4994, allocations: 4.981 MB / 0.5187 GB, free: 11.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4994, allocations: 0 / 0.5187 GB, free: 11.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4994, allocations: 0 / 0.5187 GB, free: 11.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.4996, allocations: 0.5312 kB / 0.5187 GB, free: 11.89 MB / 382.1 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.01244/0.512, allocations: 3.916 MB / 0.5225 GB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.5121, allocations: 7.719 kB / 0.5225 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000918/0.513, allocations: 0.538 MB / 0.523 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00805/0.521, allocations: 1.794 MB / 0.5248 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004664/0.5257, allocations: 1.305 MB / 0.5261 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.5259, allocations: 150.3 kB / 0.5262 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00073/0.5266, allocations: 204.2 kB / 0.5264 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/0.5426, allocations: 7.966 MB / 0.5342 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/0.5427, allocations: 26.83 kB / 0.5342 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003075/0.543, allocations: 94.11 kB / 0.5343 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003403/0.5464, allocations: 1.849 MB / 0.5361 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01629/0.5627, allocations: 7.159 MB / 0.5431 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04256/0.6053, allocations: 24.03 MB / 0.5666 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005948/0.6112, allocations: 1.846 MB / 0.5684 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.6129, allocations: 0.7735 MB / 0.5691 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00886/0.6218, allocations: 3.33 MB / 0.5724 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/0.6219, allocations: 48.12 kB / 0.5724 GB, free: 10.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 1.834e-05/0.6219, allocations: 0 / 0.5724 GB, free: 10.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01892/0.6408, allocations: 6.946 MB / 0.5792 GB, free: 3.102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.6409, allocations: 70.06 kB / 0.5793 GB, free: 3.027 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006454/0.6473, allocations: 2.628 MB / 0.5818 GB, free: 380 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.818e-05/0.6474, allocations: 49.53 kB / 0.5819 GB, free: 328 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00236/0.6498, allocations: 2.164 MB / 0.584 GB, free: 14.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006786/0.6505, allocations: 0.6053 MB / 0.5846 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/0.652, allocations: 0.7786 MB / 0.5853 GB, free: 12.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.6522, allocations: 305.1 kB / 0.5856 GB, free: 12.49 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.6551, allocations: 1.308 MB / 0.5869 GB, free: 11.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005029/0.6601, allocations: 3.437 MB / 0.5903 GB, free: 6.723 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008114/0.6682, allocations: 5.097 MB / 0.5952 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.339e-05/0.6683, allocations: 20 kB / 0.5953 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.0102/0.6785, allocations: 4.82 MB / 0.6 GB, free: 12.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.62e-05/0.6785, allocations: 40 kB / 0.6 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001776/0.6787, allocations: 72 kB / 0.6001 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006155/0.6793, allocations: 202.4 kB / 0.6003 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003086/0.6824, allocations: 0.9046 MB / 0.6011 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00318/0.6856, allocations: 2.221 MB / 0.6033 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002849/0.6885, allocations: 215.6 kB / 0.6035 GB, free: 8.535 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000386/0.6888, allocations: 230.5 kB / 0.6037 GB, free: 8.312 MB / 446.1 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.003365/0.6922, allocations: 1.572 MB / 0.6053 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006783/0.6929, allocations: 230.6 kB / 0.6055 GB, free: 6.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003857/0.6967, allocations: 1.943 MB / 0.6074 GB, free: 4.551 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/0.6969, allocations: 32.88 kB / 0.6074 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.6969, allocations: 0 / 0.6074 GB, free: 4.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.6969, allocations: 7.969 kB / 0.6074 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.7089, allocations: 5.546 MB / 0.6129 GB, free: 14.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.7089, allocations: 4 kB / 0.6129 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009868/0.7099, allocations: 239.6 kB / 0.6131 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000301/0.7102, allocations: 101.1 kB / 0.6132 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.023e-05/0.7102, allocations: 28.66 kB / 0.6132 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.7125, allocations: 1.963 MB / 0.6151 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7125, allocations: 4 kB / 0.6151 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/0.718, allocations: 3.037 MB / 0.6181 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008359/0.7189, allocations: 237.6 kB / 0.6183 GB, free: 9.113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.7191, allocations: 27.12 kB / 0.6183 GB, free: 9.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008203/0.7199, allocations: 71.91 kB / 0.6184 GB, free: 9.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.7201, allocations: 92.72 kB / 0.6185 GB, free: 8.926 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.403e-05/0.7202, allocations: 43.98 kB / 0.6185 GB, free: 8.883 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003313/0.7235, allocations: 1.691 MB / 0.6202 GB, free: 7.176 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7235, allocations: 0 / 0.6202 GB, free: 7.176 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003449/0.727, allocations: 0.6544 MB / 0.6208 GB, free: 6.523 MB / 462.1 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.006129/0.7331, allocations: 3.679 MB / 0.6244 GB, free: 2.797 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00628/0.7394, allocations: 3.013 MB / 0.6274 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/0.7394, allocations: 4 kB / 0.6274 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.7409, allocations: 0.9258 MB / 0.6283 GB, free: 14.85 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/0.7428, allocations: 388.1 kB / 0.6286 GB, free: 14.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04787/0.7907, allocations: 27.52 MB / 0.6555 GB, free: 284 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003596/0.7943, allocations: 2.569 MB / 0.658 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003127/0.7974, allocations: 1.2 MB / 0.6592 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00201/0.7994, allocations: 1.284 MB / 0.6605 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.513e-06/0.7994, allocations: 0 / 0.6605 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/0.9286, allocations: 49.71 MB / 0.709 GB, free: 9.766 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.01/20.93, allocations: 0 / 0.709 GB, free: 9.766 MB / 0.545 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.29169357405044] Failed to read output from testmodel.py, exit status != 0: 21.085949703818187 21.329050643 20.826366687 Calling exit ...