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.0007349/0.0007349, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007987/0.0007987, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9009/0.9009, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.03717/0.03717, allocations: 7.12 MB / 266.3 MB, free: 6.32 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 392.4 MB, free: 4 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.754e-05, allocations: 5.234 kB / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.005825/0.005843, allocations: 7.413 MB / 399.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004122/0.009965, allocations: 2.519 MB / 402.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000761/0.01073, allocations: 39.88 kB / 402.4 MB, free: 9.977 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006482/0.01137, allocations: 385.4 kB / 402.7 MB, free: 9.598 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.01357, allocations: 1.505 MB / 404.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.0138, allocations: 127.8 kB / 404.4 MB, free: 7.961 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001917/0.01572, allocations: 2.581 MB / 406.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008835/0.0166, allocations: 0.7573 MB / 407.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001279/0.01788, allocations: 1.391 MB / 409.1 MB, free: 3.195 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001449/0.01933, allocations: 1.321 MB / 410.4 MB, free: 1.871 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003553/0.01969, allocations: 232 kB / 410.6 MB, free: 1.645 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009096/0.0206, allocations: 0.819 MB / 411.5 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1427/0.1633, allocations: 1.279 MB / 412.7 MB, free: 17.86 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.1645, allocations: 0.8345 MB / 413.6 MB, free: 17.86 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003919/0.1684, allocations: 5.003 MB / 418.6 MB, free: 17.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1684, allocations: 4.766 kB / 418.6 MB, free: 17.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1684, allocations: 0 / 418.6 MB, free: 17.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.529e-05/0.1684, allocations: 0 / 418.6 MB, free: 17.62 MB / 330.7 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.006373/0.1748, allocations: 4.402 MB / 423 MB, free: 16.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1748, allocations: 10.41 kB / 423 MB, free: 16.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004528/0.1753, allocations: 0.5449 MB / 423.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003393/0.1787, allocations: 1.847 MB / 425.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.1802, allocations: 1.318 MB / 426.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.251e-05/0.1803, allocations: 147.3 kB / 426.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/0.1807, allocations: 200.3 kB / 427 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006641/0.1873, allocations: 8.233 MB / 435.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.633e-05/0.1873, allocations: 24.36 kB / 435.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002154/0.1876, allocations: 103.5 kB / 435.4 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001369/0.1889, allocations: 1.902 MB / 437.3 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006773/0.1957, allocations: 7.353 MB / 444.7 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/0.2141, allocations: 24.18 MB / 468.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003431/0.2176, allocations: 2.185 MB / 471 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008205/0.2184, allocations: 0.8537 MB / 471.9 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003463/0.2218, allocations: 2.91 MB / 474.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.2219, allocations: 44.78 kB / 474.8 MB, free: 6.488 MB / 362.7 MB Notification: Performance of pre-optimization done (n=148): time 2.896e-06/0.2219, allocations: 0 / 474.8 MB, free: 6.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=176): time 0.007903/0.2298, allocations: 5.651 MB / 480.5 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.23, allocations: 75.53 kB / 480.5 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.2325, allocations: 2.744 MB / 483.3 MB, free: 14.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.352e-05/0.2326, allocations: 53.7 kB / 483.3 MB, free: 13.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008996/0.2335, allocations: 2.163 MB / 485.5 MB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003461/0.2338, allocations: 0.6687 MB / 486.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007539/0.2346, allocations: 0.817 MB / 487 MB, free: 10.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.951e-05/0.2347, allocations: 301.1 kB / 487.3 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.2362, allocations: 1.359 MB / 488.6 MB, free: 8.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/0.2387, allocations: 3.627 MB / 492.3 MB, free: 3.957 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/0.2428, allocations: 5.39 MB / 497.7 MB, free: 13.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/0.2428, allocations: 27.94 kB / 497.7 MB, free: 13.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.005259/0.2481, allocations: 5.212 MB / 0.4911 GB, free: 8.293 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.2481, allocations: 40 kB / 0.4912 GB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.164e-05/0.2482, allocations: 76 kB / 0.4912 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005499/0.2487, allocations: 360 kB / 0.4916 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/0.2502, allocations: 0.9255 MB / 0.4925 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00351/0.2537, allocations: 4.02 MB / 0.4964 GB, free: 2.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.2551, allocations: 211.9 kB / 0.4966 GB, free: 2.574 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000217/0.2553, allocations: 244 kB / 0.4968 GB, free: 2.336 MB / 394.7 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.001853/0.2572, allocations: 1.615 MB / 0.4984 GB, free: 0.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.2574, allocations: 242.4 kB / 0.4986 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002379/0.2598, allocations: 2.31 MB / 0.5009 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-05/0.2598, allocations: 27.98 kB / 0.5009 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2598, allocations: 4 kB / 0.5009 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.2598, allocations: 7.969 kB / 0.5009 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006519/0.2663, allocations: 6.098 MB / 0.5069 GB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.2663, allocations: 0 / 0.5069 GB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.2669, allocations: 243.7 kB / 0.5071 GB, free: 7.688 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004066/0.2673, allocations: 260.5 kB / 0.5074 GB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.906e-05/0.2673, allocations: 38.25 kB / 0.5074 GB, free: 7.398 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002669/0.27, allocations: 3.284 MB / 0.5106 GB, free: 4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.27, allocations: 5.641 kB / 0.5106 GB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003279/0.2733, allocations: 3.572 MB / 0.5141 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.2736, allocations: 242.4 kB / 0.5143 GB, free: 124 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.2737, allocations: 32 kB / 0.5144 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.2742, allocations: 87.88 kB / 0.5145 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.2743, allocations: 109 kB / 0.5146 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.23e-05/0.2744, allocations: 51.98 kB / 0.5146 GB, free: 15.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001561/0.2759, allocations: 1.668 MB / 0.5162 GB, free: 14.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2759, allocations: 0 / 0.5162 GB, free: 14.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00197/0.2779, allocations: 0.7031 MB / 0.5169 GB, free: 13.46 MB / 426.7 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.003508/0.2814, allocations: 4.219 MB / 0.521 GB, free: 9.168 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003453/0.2849, allocations: 3.303 MB / 0.5243 GB, free: 5.863 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2849, allocations: 0 / 0.5243 GB, free: 5.863 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000963/0.2858, allocations: 1.095 MB / 0.5253 GB, free: 4.758 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.2869, allocations: 402.3 kB / 0.5257 GB, free: 4.371 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/0.3155, allocations: 29.09 MB / 0.5541 GB, free: 4.242 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001995/0.3175, allocations: 2.054 MB / 0.5561 GB, free: 2.152 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002003/0.3195, allocations: 1.275 MB / 0.5574 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/0.3206, allocations: 1.346 MB / 0.5587 GB, free: 15.54 MB / 474.7 MB Notification: Performance of SimCode: time 1.773e-06/0.3206, allocations: 0 / 0.5587 GB, free: 15.54 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1818/0.5024, allocations: 50.38 MB / 0.6079 GB, free: 140.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.011/9.513, allocations: 1.688 kB / 0.6079 GB, free: 140.8 MB / 474.7 MB " [Timeout remaining time 650] (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: 11.361510833725333] Failed to read output from testmodel.py, exit status != 0: 9.621877515688539 9.632122048 9.462121581 Calling exit ...