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.001443/0.001443, allocations: 108.7 kB / 16.45 MB, free: 6.453 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.001408/0.001408, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.484/1.484, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.04816/0.04816, allocations: 9.218 MB / 318.1 MB, free: 11.21 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.001974/0.001974, allocations: 67.89 kB / 442.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1312, allocations: 55.43 MB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01127/0.1424, allocations: 8.567 MB / 0.4947 GB, free: 2.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00678/0.1492, allocations: 2.651 MB / 0.4972 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.1506, allocations: 39.88 kB / 0.4973 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1517, allocations: 385.5 kB / 0.4977 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003986/0.1556, allocations: 1.405 MB / 0.499 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005081/0.1561, allocations: 151.8 kB / 0.4992 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003894/0.16, allocations: 2.527 MB / 0.5016 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.1616, allocations: 0.8465 MB / 0.5025 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.1634, allocations: 0.9417 MB / 0.5034 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002309/0.1657, allocations: 1.444 MB / 0.5048 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005647/0.1663, allocations: 240 kB / 0.505 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001809/0.1681, allocations: 0.8815 MB / 0.5059 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.1695, allocations: 1.234 MB / 0.5071 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001898/0.1714, allocations: 1.588 MB / 0.5086 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2923/0.4637, allocations: 5.058 MB / 0.5136 GB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4637, allocations: 0 / 0.5136 GB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4637, allocations: 0 / 0.5136 GB, free: 11.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002012/0.4639, allocations: 1.969 kB / 0.5136 GB, free: 11.41 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.01411/0.478, allocations: 4.392 MB / 0.5179 GB, free: 9.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4781, allocations: 11.28 kB / 0.5179 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009125/0.479, allocations: 0.5486 MB / 0.5184 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007671/0.4867, allocations: 1.812 MB / 0.5202 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.4901, allocations: 1.361 MB / 0.5215 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.4902, allocations: 152.2 kB / 0.5217 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000781/0.491, allocations: 192.6 kB / 0.5218 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.5053, allocations: 8.194 MB / 0.5298 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.699e-05/0.5054, allocations: 17.88 kB / 0.5299 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003092/0.5057, allocations: 91.66 kB / 0.53 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003255/0.5089, allocations: 1.92 MB / 0.5318 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0158/0.5247, allocations: 7.429 MB / 0.5391 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04058/0.5653, allocations: 24.86 MB / 0.5634 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006042/0.5714, allocations: 2.341 MB / 0.5656 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.5729, allocations: 0.8079 MB / 0.5664 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007507/0.5804, allocations: 4.434 MB / 0.5708 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.086e-05/0.5804, allocations: 47.56 kB / 0.5708 GB, free: 7.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.577e-06/0.5804, allocations: 0 / 0.5708 GB, free: 7.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.0128/0.5932, allocations: 4.704 MB / 0.5754 GB, free: 2.805 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.5933, allocations: 64.41 kB / 0.5755 GB, free: 2.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.5974, allocations: 2.502 MB / 0.5779 GB, free: 200 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002073/0.5977, allocations: 44.23 kB / 0.5779 GB, free: 152 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.5994, allocations: 2.157 MB / 0.5801 GB, free: 14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006678/0.6001, allocations: 0.563 MB / 0.5806 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/0.6012, allocations: 0.7467 MB / 0.5813 GB, free: 12.69 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.6013, allocations: 301.1 kB / 0.5816 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002301/0.6036, allocations: 1.233 MB / 0.5828 GB, free: 11.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004329/0.6079, allocations: 3.306 MB / 0.5861 GB, free: 6.883 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007688/0.6156, allocations: 4.892 MB / 0.5908 GB, free: 1.285 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.734e-05/0.6157, allocations: 24 kB / 0.5909 GB, free: 1.262 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009248/0.6249, allocations: 4.647 MB / 0.5954 GB, free: 12.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.81e-05/0.625, allocations: 36 kB / 0.5954 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.781e-05/0.6251, allocations: 72 kB / 0.5955 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006137/0.6257, allocations: 231.3 kB / 0.5957 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/0.6283, allocations: 0.8227 MB / 0.5965 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003554/0.6319, allocations: 2.859 MB / 0.5993 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/0.6345, allocations: 188.7 kB / 0.5995 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003471/0.6348, allocations: 216 kB / 0.5997 GB, free: 8.383 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.002559/0.6374, allocations: 1.591 MB / 0.6013 GB, free: 6.789 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004049/0.6378, allocations: 223.1 kB / 0.6015 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/0.6415, allocations: 1.933 MB / 0.6034 GB, free: 4.625 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/0.6416, allocations: 23.98 kB / 0.6034 GB, free: 4.602 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.6416, allocations: 7.938 kB / 0.6034 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/0.6416, allocations: 14.48 kB / 0.6034 GB, free: 4.586 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.6524, allocations: 5.801 MB / 0.6091 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.6524, allocations: 8.062 kB / 0.6091 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009228/0.6534, allocations: 211.7 kB / 0.6093 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004152/0.6538, allocations: 143.9 kB / 0.6094 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.974e-05/0.6539, allocations: 31.94 kB / 0.6094 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002984/0.6569, allocations: 2.51 MB / 0.6119 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6569, allocations: 4 kB / 0.6119 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005095/0.662, allocations: 3.075 MB / 0.6149 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000814/0.6628, allocations: 299.5 kB / 0.6152 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.663, allocations: 31.92 kB / 0.6152 GB, free: 8.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008026/0.6638, allocations: 71.86 kB / 0.6153 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.6641, allocations: 96.81 kB / 0.6154 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.624e-05/0.6642, allocations: 43.91 kB / 0.6154 GB, free: 7.957 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002681/0.6668, allocations: 1.608 MB / 0.617 GB, free: 6.332 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6668, allocations: 0 / 0.617 GB, free: 6.332 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003161/0.67, allocations: 0.6445 MB / 0.6176 GB, free: 5.688 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.005492/0.6755, allocations: 3.699 MB / 0.6212 GB, free: 1.914 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006056/0.6815, allocations: 2.933 MB / 0.6241 GB, free: 14.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.6815, allocations: 0 / 0.6241 GB, free: 14.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001663/0.6832, allocations: 0.9559 MB / 0.625 GB, free: 14.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.6855, allocations: 412.5 kB / 0.6254 GB, free: 13.64 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04625/0.7317, allocations: 26.78 MB / 0.6516 GB, free: 108 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003381/0.7351, allocations: 2.6 MB / 0.6541 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002888/0.738, allocations: 1.141 MB / 0.6552 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/0.7399, allocations: 1.304 MB / 0.6565 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of SimCode: time 7.31e-07/0.7399, allocations: 0 / 0.6565 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/0.8422, allocations: 45.3 MB / 0.7007 GB, free: 13.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.8/16.64, allocations: 8.047 kB / 0.7007 GB, free: 13.96 MB / 0.545 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PendulumExcited_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_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.530664632999105] Failed to read output from testmodel.py, exit status != 0: 16.75490256700141 16.773300714 16.305852089 Calling exit ...