Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.001384/0.001384, allocations: 106.4 kB / 18.94 MB, free: 2.957 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.001584/0.001584, allocations: 222.9 kB / 22.26 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.543/1.543, allocations: 230.6 MB / 256 MB, free: 8.004 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.0525/0.0525, allocations: 9.236 MB / 321.7 MB, free: 10.06 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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.002163/0.002163, allocations: 67.89 kB / 447.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.115, allocations: 55.47 MB / 0.4914 GB, free: 7.508 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01102/0.126, allocations: 8.502 MB / 0.4997 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00573/0.1318, allocations: 2.655 MB / 0.5023 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007983/0.1326, allocations: 35.88 kB / 0.5023 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009748/0.1335, allocations: 385.4 kB / 0.5027 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.1369, allocations: 1.455 MB / 0.5041 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000512/0.1374, allocations: 135.8 kB / 0.5043 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003079/0.1405, allocations: 2.536 MB / 0.5067 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.1417, allocations: 0.7535 MB / 0.5075 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.1428, allocations: 0.9222 MB / 0.5084 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002404/0.1452, allocations: 1.432 MB / 0.5098 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004323/0.1457, allocations: 232 kB / 0.51 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.1474, allocations: 0.8815 MB / 0.5109 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.1487, allocations: 1.242 MB / 0.5121 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.1504, allocations: 1.565 MB / 0.5136 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2215/0.372, allocations: 5.022 MB / 0.5185 GB, free: 11.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.372, allocations: 0 / 0.5185 GB, free: 11.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.372, allocations: 0 / 0.5185 GB, free: 11.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.3721, allocations: 1.812 kB / 0.5185 GB, free: 11.84 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01089/0.383, allocations: 4.399 MB / 0.5228 GB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.383, allocations: 10.7 kB / 0.5228 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006696/0.3837, allocations: 0.549 MB / 0.5233 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006871/0.3905, allocations: 1.784 MB / 0.5251 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002888/0.3934, allocations: 1.307 MB / 0.5264 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3935, allocations: 151.8 kB / 0.5265 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005032/0.394, allocations: 196.7 kB / 0.5267 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.4097, allocations: 8.261 MB / 0.5348 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-05/0.4098, allocations: 21.7 kB / 0.5348 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002953/0.4101, allocations: 92.39 kB / 0.5349 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/0.413, allocations: 1.908 MB / 0.5367 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/0.4274, allocations: 7.422 MB / 0.544 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04081/0.4682, allocations: 25.53 MB / 0.5689 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006402/0.4746, allocations: 2.093 MB / 0.571 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.4762, allocations: 0.8583 MB / 0.5718 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006838/0.483, allocations: 3.154 MB / 0.5749 GB, free: 7.242 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.704e-05/0.4831, allocations: 53.5 kB / 0.5749 GB, free: 7.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.807e-06/0.4831, allocations: 0 / 0.5749 GB, free: 7.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01388/0.4969, allocations: 5.502 MB / 0.5803 GB, free: 1.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.497, allocations: 64.72 kB / 0.5804 GB, free: 1.656 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00432/0.5013, allocations: 2.623 MB / 0.5829 GB, free: 15.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001417/0.5015, allocations: 53.7 kB / 0.583 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/0.5032, allocations: 2.18 MB / 0.5851 GB, free: 12.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000649/0.5039, allocations: 0.676 MB / 0.5858 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00128/0.5052, allocations: 0.8292 MB / 0.5866 GB, free: 11.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5053, allocations: 305.1 kB / 0.5869 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002459/0.5078, allocations: 1.371 MB / 0.5882 GB, free: 9.594 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004506/0.5123, allocations: 3.627 MB / 0.5917 GB, free: 4.879 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007637/0.5199, allocations: 5.411 MB / 0.597 GB, free: 14.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-05/0.5199, allocations: 24 kB / 0.597 GB, free: 14.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01014/0.5301, allocations: 5.226 MB / 0.6022 GB, free: 9.652 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.359e-05/0.5302, allocations: 40.94 kB / 0.6022 GB, free: 9.613 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.998e-05/0.5302, allocations: 76 kB / 0.6023 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009267/0.5312, allocations: 366.8 kB / 0.6026 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.5341, allocations: 0.9133 MB / 0.6035 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006225/0.5403, allocations: 4.074 MB / 0.6075 GB, free: 4.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003384/0.5437, allocations: 211.9 kB / 0.6077 GB, free: 3.879 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007202/0.5444, allocations: 242.2 kB / 0.6079 GB, free: 3.645 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (498): * Single equations (assignments): 493 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003368/0.5478, allocations: 1.595 MB / 0.6095 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004558/0.5483, allocations: 249.8 kB / 0.6097 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004671/0.5529, allocations: 2.333 MB / 0.612 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001151/0.5531, allocations: 32.48 kB / 0.612 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.5531, allocations: 4 kB / 0.612 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/0.5531, allocations: 7.969 kB / 0.612 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.566, allocations: 6.394 MB / 0.6183 GB, free: 8.918 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.566, allocations: 4 kB / 0.6183 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.5671, allocations: 252.1 kB / 0.6185 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007119/0.5678, allocations: 252.6 kB / 0.6188 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.88e-05/0.5679, allocations: 36.05 kB / 0.6188 GB, free: 8.383 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00474/0.5727, allocations: 3.319 MB / 0.622 GB, free: 4.961 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.5727, allocations: 8 kB / 0.622 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005912/0.5786, allocations: 3.608 MB / 0.6256 GB, free: 1.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006137/0.5792, allocations: 234.5 kB / 0.6258 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.5795, allocations: 38.2 kB / 0.6258 GB, free: 1.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008335/0.5803, allocations: 75.91 kB / 0.6259 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/0.5806, allocations: 117.9 kB / 0.626 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.5807, allocations: 48 kB / 0.6261 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002912/0.5837, allocations: 1.68 MB / 0.6277 GB, free: 15.08 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5837, allocations: 0 / 0.6277 GB, free: 15.08 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003052/0.5867, allocations: 0.7031 MB / 0.6284 GB, free: 14.38 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006795/0.5935, allocations: 4.256 MB / 0.6325 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006172/0.5997, allocations: 3.317 MB / 0.6358 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.5997, allocations: 0 / 0.6358 GB, free: 6.73 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.6015, allocations: 1.091 MB / 0.6368 GB, free: 5.625 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/0.6036, allocations: 412.6 kB / 0.6372 GB, free: 5.238 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05007/0.6537, allocations: 29.33 MB / 0.6659 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003579/0.6573, allocations: 2.615 MB / 0.6684 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00357/0.6608, allocations: 1.267 MB / 0.6697 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/0.6631, allocations: 1.354 MB / 0.671 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of SimCode: time 1.413e-06/0.6631, allocations: 0 / 0.671 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4392/1.102, allocations: 53.28 MB / 0.723 GB, free: 183.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.34/20.44, allocations: 4.594 kB / 0.723 GB, free: 183.5 MB / 0.545 GB " [Timeout remaining time 639] (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.DoublePendulum_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.33930811800019] Failed to read output from testmodel.py, exit status != 0: 20.585178932000417 20.611008199 20.234569587 Calling exit ...