Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.QfURegulation.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.001166/0.001166, allocations: 80.53 kB / 19.96 MB, free: 4.598 MB / 18.57 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.000979/0.000979, allocations: 174.3 kB / 23.25 MB, free: 1.312 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.8762/0.8762, allocations: 177.1 MB / 203.6 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.02287/0.02287, allocations: 4.473 MB / 264.5 MB, free: 8.762 MB / 250.7 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/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(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.QfURegulation,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_QfURegulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 389.6 MB, free: 7.391 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.247e-05/1.403e-05, allocations: 6.219 kB / 389.6 MB, free: 7.383 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.QfURegulation): time 0.0021/0.002114, allocations: 1.837 MB / 391.5 MB, free: 5.543 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.003789, allocations: 1.637 MB / 393.1 MB, free: 3.891 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.003892, allocations: 4 kB / 393.1 MB, free: 3.887 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.004207, allocations: 135.1 kB / 393.2 MB, free: 3.754 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004632/0.00467, allocations: 230.5 kB / 393.5 MB, free: 3.527 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.005743, allocations: 1.116 MB / 394.6 MB, free: 2.406 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006051/0.006348, allocations: 386.3 kB / 394.9 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.00649, allocations: 69.14 kB / 395 MB, free: 1.961 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.006741, allocations: 231.5 kB / 395.2 MB, free: 1.734 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.006926, allocations: 155.5 kB / 395.4 MB, free: 1.582 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.006962, allocations: 32 kB / 395.4 MB, free: 1.551 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003515/0.007313, allocations: 291.5 kB / 395.7 MB, free: 1.266 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.007386, allocations: 83.72 kB / 395.8 MB, free: 1.184 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.186e-05/0.007478, allocations: 127.7 kB / 395.9 MB, free: 1.059 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005053/0.007983, allocations: 0.5999 MB / 396.5 MB, free: 468 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.007985, allocations: 0 / 396.5 MB, free: 468 kB / 314.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.007986, allocations: 0 / 396.5 MB, free: 468 kB / 314.7 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.007992, allocations: 0 / 396.5 MB, free: 468 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002228/0.01022, allocations: 1.051 MB / 397.6 MB, free: 15.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.01026, allocations: 8.031 kB / 397.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.417e-05/0.01032, allocations: 66.73 kB / 397.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.349e-05/0.0104, allocations: 40.7 kB / 397.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.01069, allocations: 237.4 kB / 397.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.01086, allocations: 233.1 kB / 398.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.0109, allocations: 32.38 kB / 398.2 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009969/0.0119, allocations: 0.8366 MB / 399 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.01191, allocations: 192 / 399 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.01194, allocations: 16.38 kB / 399 MB, free: 13.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.01195, allocations: 11.94 kB / 399 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000568/0.01252, allocations: 465.7 kB / 399.5 MB, free: 13.31 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.01378, allocations: 1.092 MB / 400.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/0.01466, allocations: 0.5941 MB / 401.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003563/0.01502, allocations: 302.4 kB / 401.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.705e-05/0.0151, allocations: 8 kB / 401.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.01544, allocations: 380.2 kB / 401.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 1.973e-06/0.01544, allocations: 0 / 401.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.002258/0.0177, allocations: 1.138 MB / 403 MB, free: 9.672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.01777, allocations: 144.9 kB / 403.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.01794, allocations: 231.1 kB / 403.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.01798, allocations: 33.7 kB / 403.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.177e-05/0.01807, allocations: 161.2 kB / 403.5 MB, free: 9.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.895e-05/0.01814, allocations: 103.1 kB / 403.6 MB, free: 8.961 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.72e-05/0.01823, allocations: 86.17 kB / 403.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.01833, allocations: 330.8 kB / 404.1 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.01855, allocations: 196.9 kB / 404.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.01879, allocations: 276.2 kB / 404.5 MB, free: 8.051 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004393/0.01923, allocations: 451.4 kB / 405 MB, free: 7.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.01923, allocations: 0 / 405 MB, free: 7.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008753/0.0201, allocations: 0.7014 MB / 405.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.02012, allocations: 4 kB / 405.7 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.02013, allocations: 12.05 kB / 405.7 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.02124, allocations: 456.3 kB / 406.1 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.02139, allocations: 67.89 kB / 406.2 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008666/0.02225, allocations: 0.9037 MB / 407.1 MB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.0224, allocations: 35.78 kB / 407.1 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.02242, allocations: 19.98 kB / 407.1 MB, free: 5.367 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.02256, allocations: 153.7 kB / 407.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003515/0.02291, allocations: 265.2 kB / 407.5 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006832/0.02359, allocations: 0.5683 MB / 408.1 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.0236, allocations: 7.938 kB / 408.1 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.0236, allocations: 7.938 kB / 408.1 MB, free: 4.348 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.02361, allocations: 3.984 kB / 408.1 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.02537, allocations: 1.256 MB / 409.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.02537, allocations: 0 / 409.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.02557, allocations: 79.89 kB / 409.5 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009962/0.02656, allocations: 460.3 kB / 409.9 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.02659, allocations: 8 kB / 409.9 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000813/0.0274, allocations: 0.9114 MB / 410.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.0274, allocations: 7.938 kB / 410.8 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.02878, allocations: 0.9872 MB / 411.8 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.02881, allocations: 39.67 kB / 411.9 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/0.02885, allocations: 12 kB / 411.9 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.02904, allocations: 43.95 kB / 411.9 MB, free: 452 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.02909, allocations: 27.89 kB / 412 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.02912, allocations: 16 kB / 412 MB, free: 408 kB / 330.7 MB Notification: Performance of sorting global known variables: time 9.795e-05/0.02922, allocations: 167.3 kB / 412.1 MB, free: 240 kB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02922, allocations: 4 kB / 412.1 MB, free: 236 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002685/0.02948, allocations: 107.9 kB / 412.2 MB, free: 128 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 37 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1401/0.1696, allocations: 1.551 MB / 413.8 MB, free: 34.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.1708, allocations: 0.6296 MB / 414.4 MB, free: 33.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1708, allocations: 0 / 414.4 MB, free: 33.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000534/0.1713, allocations: 310.1 kB / 414.7 MB, free: 33.87 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.1719, allocations: 154.6 kB / 414.9 MB, free: 33.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.176, allocations: 3.909 MB / 418.8 MB, free: 31.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.1761, allocations: 172.1 kB / 419 MB, free: 31.46 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.1763, allocations: 40.39 kB / 419 MB, free: 31.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.1764, allocations: 100.8 kB / 419.1 MB, free: 31.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1764, allocations: 0 / 419.1 MB, free: 31.38 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.1987, allocations: 9.591 MB / 428.7 MB, free: 28.22 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.193, allocations: 5.469 kB / 428.7 MB, free: 28.22 MB / 330.7 MB " [Timeout remaining time 652] (rm -f PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.QfURegulation.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.QfURegulation_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 PowerSysPro_PowerSysPro_Examples_QfURegulation.fmu > PowerSysPro_PowerSysPro.Examples.QfURegulation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.966290508396924] Failed to read output from testmodel.py, exit status != 0: 8.287007745355368 8.297132335 8.287678451 Calling exit ...