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.001701/0.001701, allocations: 109.2 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.002093/0.002093, allocations: 220.1 kB / 22.26 MB, free: 5.121 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.992 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.04986/0.04986, allocations: 9.236 MB / 321.7 MB, free: 10.04 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.002013/0.002013, allocations: 67.84 kB / 447.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1036, allocations: 55.48 MB / 0.4914 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01122/0.1148, allocations: 8.596 MB / 0.4998 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.1204, allocations: 2.671 MB / 0.5024 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009774/0.1213, allocations: 35.88 kB / 0.5025 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008987/0.1222, allocations: 377.5 kB / 0.5028 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003312/0.1256, allocations: 1.42 MB / 0.5042 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004408/0.126, allocations: 163.7 kB / 0.5044 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003149/0.1291, allocations: 2.517 MB / 0.5068 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.1303, allocations: 0.8236 MB / 0.5076 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.1316, allocations: 0.9339 MB / 0.5085 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00199/0.1336, allocations: 1.444 MB / 0.5099 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004121/0.134, allocations: 240 kB / 0.5102 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/0.1356, allocations: 0.8855 MB / 0.511 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.1368, allocations: 1.242 MB / 0.5122 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001582/0.1384, allocations: 1.58 MB / 0.5138 GB, free: 492 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2334/0.3718, allocations: 5.059 MB / 0.5187 GB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3718, allocations: 3.328 kB / 0.5187 GB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.3718, allocations: 2.531 kB / 0.5187 GB, free: 11.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000185/0.372, allocations: 0 / 0.5187 GB, free: 11.45 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.01207/0.384, allocations: 4.322 MB / 0.523 GB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3841, allocations: 10.22 kB / 0.523 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001223/0.3853, allocations: 0.5434 MB / 0.5235 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007587/0.3929, allocations: 1.812 MB / 0.5253 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004102/0.397, allocations: 1.307 MB / 0.5265 GB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002551/0.3972, allocations: 152.4 kB / 0.5267 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001106/0.3983, allocations: 194.6 kB / 0.5269 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01577/0.4141, allocations: 8.186 MB / 0.5349 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.4142, allocations: 18 kB / 0.5349 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004576/0.4147, allocations: 95.44 kB / 0.535 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003343/0.418, allocations: 1.917 MB / 0.5368 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01524/0.4333, allocations: 7.43 MB / 0.5441 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04321/0.4765, allocations: 24.78 MB / 0.5683 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005542/0.482, allocations: 1.879 MB / 0.5701 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001472/0.4835, allocations: 0.8079 MB / 0.5709 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006635/0.4901, allocations: 2.853 MB / 0.5737 GB, free: 8.551 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.4902, allocations: 46.94 kB / 0.5738 GB, free: 8.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.747e-06/0.4902, allocations: 0 / 0.5738 GB, free: 8.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01205/0.5022, allocations: 4.705 MB / 0.5784 GB, free: 3.812 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.5023, allocations: 63.12 kB / 0.5784 GB, free: 3.742 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004441/0.5067, allocations: 2.507 MB / 0.5809 GB, free: 1.203 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.5069, allocations: 45.7 kB / 0.5809 GB, free: 1.152 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/0.5089, allocations: 2.149 MB / 0.583 GB, free: 15.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006479/0.5095, allocations: 0.5614 MB / 0.5836 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/0.5107, allocations: 0.757 MB / 0.5843 GB, free: 13.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5109, allocations: 301.1 kB / 0.5846 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00214/0.513, allocations: 1.235 MB / 0.5858 GB, free: 12.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004252/0.5173, allocations: 3.308 MB / 0.589 GB, free: 7.883 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007077/0.5243, allocations: 4.883 MB / 0.5938 GB, free: 2.289 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.953e-05/0.5244, allocations: 21.88 kB / 0.5938 GB, free: 2.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01005/0.5344, allocations: 4.639 MB / 0.5983 GB, free: 13.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-05/0.5345, allocations: 36 kB / 0.5984 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.46e-05/0.5346, allocations: 76.09 kB / 0.5984 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006426/0.5352, allocations: 233.4 kB / 0.5987 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002741/0.538, allocations: 0.8265 MB / 0.5995 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00372/0.5417, allocations: 2.752 MB / 0.6022 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/0.5444, allocations: 190.5 kB / 0.6023 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004632/0.5449, allocations: 220 kB / 0.6026 GB, free: 9.461 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.003197/0.5481, allocations: 1.586 MB / 0.6041 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.5485, allocations: 226.4 kB / 0.6043 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/0.5524, allocations: 1.926 MB / 0.6062 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001075/0.5525, allocations: 24.88 kB / 0.6062 GB, free: 5.684 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.5525, allocations: 7.938 kB / 0.6062 GB, free: 5.676 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.5525, allocations: 7.969 kB / 0.6062 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/0.564, allocations: 5.781 MB / 0.6119 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.564, allocations: 4 kB / 0.6119 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009213/0.5649, allocations: 215.7 kB / 0.6121 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003949/0.5653, allocations: 139 kB / 0.6122 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.855e-05/0.5654, allocations: 31.92 kB / 0.6123 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/0.5684, allocations: 2.426 MB / 0.6146 GB, free: 12.87 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-05/0.5684, allocations: 7.938 kB / 0.6146 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005055/0.5735, allocations: 3.068 MB / 0.6176 GB, free: 9.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006767/0.5742, allocations: 230.5 kB / 0.6179 GB, free: 9.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003453/0.5745, allocations: 23.94 kB / 0.6179 GB, free: 9.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008305/0.5753, allocations: 67.92 kB / 0.6179 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.5756, allocations: 100.8 kB / 0.618 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.5757, allocations: 43.98 kB / 0.6181 GB, free: 9.273 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003012/0.5787, allocations: 1.608 MB / 0.6196 GB, free: 7.648 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5787, allocations: 0 / 0.6196 GB, free: 7.648 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003401/0.5821, allocations: 0.648 MB / 0.6203 GB, free: 7.004 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.005651/0.5877, allocations: 3.687 MB / 0.6239 GB, free: 3.246 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006178/0.5939, allocations: 2.936 MB / 0.6267 GB, free: 328 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/0.5939, allocations: 3 kB / 0.6267 GB, free: 328 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.5957, allocations: 0.9505 MB / 0.6277 GB, free: 15.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.5979, allocations: 410.9 kB / 0.6281 GB, free: 14.97 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05004/0.6479, allocations: 26.85 MB / 0.6543 GB, free: 1.367 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003466/0.6514, allocations: 2.596 MB / 0.6568 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002907/0.6543, allocations: 1.127 MB / 0.6579 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/0.6564, allocations: 1.304 MB / 0.6592 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.6564, allocations: 4 kB / 0.6592 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1089/0.7653, allocations: 48.37 MB / 0.7064 GB, free: 12.19 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.51/19.27, allocations: 6.75 kB / 0.7064 GB, free: 12.19 MB / 0.545 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 & 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: 22.318742096998903] Failed to read output from testmodel.py, exit status != 0: 19.41500054700009 19.636566518 19.06309974 Calling exit ...