Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.001538/0.001538, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.00184/0.00184, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.532/1.532, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.0494/0.0494, allocations: 9.247 MB / 322.5 MB, free: 9.848 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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="cs",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.001993/0.001993, allocations: 63.91 kB / 448.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1287, allocations: 55.46 MB / 0.4921 GB, free: 7.043 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01161/0.1403, allocations: 7.504 MB / 0.4994 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0067/0.147, allocations: 2.523 MB / 0.5019 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.1488, allocations: 35.88 kB / 0.5019 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.1502, allocations: 377.5 kB / 0.5023 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004366/0.1546, allocations: 1.424 MB / 0.5037 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007358/0.1553, allocations: 151.8 kB / 0.5038 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003993/0.1593, allocations: 2.516 MB / 0.5063 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.1609, allocations: 0.8275 MB / 0.5071 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.1626, allocations: 0.9377 MB / 0.508 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002034/0.1646, allocations: 1.44 MB / 0.5094 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004384/0.1651, allocations: 240 kB / 0.5096 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.1666, allocations: 0.7762 MB / 0.5104 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.1681, allocations: 1.242 MB / 0.5116 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001594/0.1697, allocations: 1.102 MB / 0.5127 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.275/0.4447, allocations: 5.083 MB / 0.5177 GB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4447, allocations: 0 / 0.5177 GB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4447, allocations: 0 / 0.5177 GB, free: 12.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001957/0.4449, allocations: 0 / 0.5177 GB, free: 12.52 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01329/0.4582, allocations: 4.316 MB / 0.5219 GB, free: 11.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.4582, allocations: 10.44 kB / 0.5219 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001312/0.4584, allocations: 74.45 kB / 0.5219 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00106/0.4594, allocations: 0.551 MB / 0.5225 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007451/0.4669, allocations: 1.806 MB / 0.5242 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.4708, allocations: 1.311 MB / 0.5255 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.471, allocations: 149.6 kB / 0.5257 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009083/0.4719, allocations: 197.4 kB / 0.5259 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01554/0.4875, allocations: 8.195 MB / 0.5339 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.521e-05/0.4876, allocations: 17.97 kB / 0.5339 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003495/0.4879, allocations: 89.58 kB / 0.534 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/0.4911, allocations: 1.925 MB / 0.5358 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.5078, allocations: 7.424 MB / 0.5431 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04667/0.5545, allocations: 23.42 MB / 0.566 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00596/0.5605, allocations: 1.87 MB / 0.5678 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/0.5622, allocations: 0.8079 MB / 0.5686 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006517/0.5687, allocations: 2.622 MB / 0.5711 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.5687, allocations: 45.5 kB / 0.5712 GB, free: 12.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 4.608e-06/0.5687, allocations: 0 / 0.5712 GB, free: 12.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01258/0.5813, allocations: 4.706 MB / 0.5758 GB, free: 7.504 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.5814, allocations: 72.14 kB / 0.5758 GB, free: 7.426 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004747/0.5861, allocations: 2.505 MB / 0.5783 GB, free: 4.891 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000199/0.5863, allocations: 41.7 kB / 0.5783 GB, free: 4.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001834/0.5881, allocations: 2.156 MB / 0.5804 GB, free: 2.695 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007255/0.5889, allocations: 0.553 MB / 0.581 GB, free: 2.148 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/0.5904, allocations: 0.753 MB / 0.5817 GB, free: 1.391 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5905, allocations: 301.1 kB / 0.582 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.593, allocations: 1.237 MB / 0.5832 GB, free: 15.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004165/0.5972, allocations: 3.298 MB / 0.5864 GB, free: 11.58 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006615/0.6038, allocations: 4.895 MB / 0.5912 GB, free: 5.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.459e-05/0.6039, allocations: 24 kB / 0.5912 GB, free: 5.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009298/0.6132, allocations: 4.641 MB / 0.5958 GB, free: 1.578 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.558e-05/0.6132, allocations: 36 kB / 0.5958 GB, free: 1.543 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001396/0.6134, allocations: 78 kB / 0.5959 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006598/0.614, allocations: 228.7 kB / 0.5961 GB, free: 1.242 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002915/0.617, allocations: 0.8227 MB / 0.5969 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003589/0.6205, allocations: 2.725 MB / 0.5996 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002997/0.6235, allocations: 184.8 kB / 0.5997 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006835/0.6242, allocations: 228.7 kB / 0.5999 GB, free: 13.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003264/0.6275, allocations: 1.585 MB / 0.6015 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005013/0.628, allocations: 223.3 kB / 0.6017 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.632, allocations: 1.938 MB / 0.6036 GB, free: 9.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001139/0.6322, allocations: 27.98 kB / 0.6036 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.6322, allocations: 4.062 kB / 0.6036 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.6322, allocations: 7.922 kB / 0.6036 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/0.6452, allocations: 5.495 MB / 0.609 GB, free: 3.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.6452, allocations: 4 kB / 0.609 GB, free: 3.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009472/0.6462, allocations: 216.1 kB / 0.6092 GB, free: 3.586 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004222/0.6466, allocations: 141.3 kB / 0.6093 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.6467, allocations: 38.45 kB / 0.6094 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002993/0.6497, allocations: 2.399 MB / 0.6117 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/0.6497, allocations: 11.88 kB / 0.6117 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005219/0.655, allocations: 3.065 MB / 0.6147 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007965/0.6557, allocations: 222.5 kB / 0.6149 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005688/0.6563, allocations: 27.94 kB / 0.615 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.6575, allocations: 70.25 kB / 0.615 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.6577, allocations: 94.8 kB / 0.6151 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.6579, allocations: 47.92 kB / 0.6152 GB, free: 13.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003571/0.6614, allocations: 1.615 MB / 0.6168 GB, free: 11.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6614, allocations: 0 / 0.6168 GB, free: 11.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003984/0.6654, allocations: 0.6384 MB / 0.6174 GB, free: 11.05 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006533/0.6719, allocations: 3.697 MB / 0.621 GB, free: 7.285 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006347/0.6783, allocations: 2.938 MB / 0.6239 GB, free: 4.355 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.617e-06/0.6783, allocations: 2.844 kB / 0.6239 GB, free: 4.355 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.6802, allocations: 0.9522 MB / 0.6248 GB, free: 3.387 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/0.6829, allocations: 413.3 kB / 0.6252 GB, free: 2.996 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05854/0.7415, allocations: 26.84 MB / 0.6514 GB, free: 5.406 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004692/0.7462, allocations: 2.035 MB / 0.6534 GB, free: 3.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003208/0.7494, allocations: 1.138 MB / 0.6545 GB, free: 2.203 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002354/0.7517, allocations: 1.312 MB / 0.6558 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of SimCode: time 1.873e-06/0.7517, allocations: 0 / 0.6558 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/0.8619, allocations: 47.22 MB / 0.7019 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.21/19.07, allocations: 8 kB / 0.7019 GB, free: 2.168 MB / 0.5294 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.096084214979783] Failed to read output from testmodel.py, exit status != 0: 19.26488239702303 19.293304514 18.843821878 Calling exit ...