Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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.0008607/0.0008607, allocations: 80.44 kB / 19.96 MB, free: 4.594 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.001116/0.001116, allocations: 173.2 kB / 23.25 MB, free: 1.305 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.9251/0.9251, allocations: 177.1 MB / 203.6 MB, free: 5.719 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.02257/0.02257, allocations: 4.469 MB / 264.5 MB, free: 8.77 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.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 389.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.021e-05/2.182e-05, allocations: 3.125 kB / 389.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.00265/0.002672, allocations: 2.239 MB / 391.8 MB, free: 5.176 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.005442, allocations: 2.755 MB / 394.6 MB, free: 2.398 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.005562, allocations: 4 kB / 394.6 MB, free: 2.395 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004779/0.00604, allocations: 162.9 kB / 394.8 MB, free: 2.234 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006141/0.006654, allocations: 342 kB / 395.1 MB, free: 1.898 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.007781, allocations: 1.185 MB / 396.3 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000479/0.00826, allocations: 429.9 kB / 396.7 MB, free: 296 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.008408, allocations: 85.25 kB / 396.8 MB, free: 212 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.008598, allocations: 235.6 kB / 397 MB, free: 15.97 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.008787, allocations: 159.5 kB / 397.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.008824, allocations: 32 kB / 397.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004113/0.009235, allocations: 379.2 kB / 397.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-05/0.009316, allocations: 87.61 kB / 397.7 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.639e-05/0.009403, allocations: 131.7 kB / 397.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005987/0.01, allocations: 0.7205 MB / 398.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.01001, allocations: 0 / 398.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01001, allocations: 0 / 398.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.01001, allocations: 0 / 398.5 MB, free: 14.48 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.002154/0.01217, allocations: 1.183 MB / 399.7 MB, free: 13.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.0122, allocations: 8.031 kB / 399.7 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.73e-05/0.01226, allocations: 66.72 kB / 399.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.01233, allocations: 44.66 kB / 399.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.01288, allocations: 272.6 kB / 400.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.01293, allocations: 54.92 kB / 400.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.01297, allocations: 32.38 kB / 400.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005339/0.01351, allocations: 0.6231 MB / 400.8 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.01352, allocations: 0 / 400.8 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.01354, allocations: 12 kB / 400.8 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.01355, allocations: 8 kB / 400.8 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003914/0.01394, allocations: 398.4 kB / 401.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.01521, allocations: 1.072 MB / 402.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006422/0.01585, allocations: 467.8 kB / 402.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.0161, allocations: 216.8 kB / 402.9 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.01615, allocations: 11.98 kB / 402.9 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004487/0.0166, allocations: 455.7 kB / 403.4 MB, free: 9.363 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 1.653e-06/0.0166, allocations: 0 / 403.4 MB, free: 9.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.002183/0.01878, allocations: 1.268 MB / 404.7 MB, free: 8.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.01883, allocations: 110.8 kB / 404.8 MB, free: 7.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.01904, allocations: 296.1 kB / 405.1 MB, free: 7.656 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/0.01907, allocations: 41.69 kB / 405.1 MB, free: 7.609 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.01915, allocations: 165.1 kB / 405.3 MB, free: 7.445 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.565e-05/0.01923, allocations: 150.7 kB / 405.4 MB, free: 7.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.01933, allocations: 98.17 kB / 405.5 MB, free: 7.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.01942, allocations: 346.7 kB / 405.8 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.01968, allocations: 260.9 kB / 406.1 MB, free: 6.594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002912/0.01997, allocations: 359.4 kB / 406.4 MB, free: 6.219 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005634/0.02053, allocations: 0.5652 MB / 407 MB, free: 5.652 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.02054, allocations: 0 / 407 MB, free: 5.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001133/0.02167, allocations: 0.9081 MB / 407.9 MB, free: 4.738 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.02168, allocations: 4 kB / 407.9 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.02169, allocations: 0 / 407.9 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00135/0.02304, allocations: 0.6056 MB / 408.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.02319, allocations: 75.84 kB / 408.6 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009693/0.02416, allocations: 1.072 MB / 409.7 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.02432, allocations: 47.66 kB / 409.7 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.02436, allocations: 20 kB / 409.7 MB, free: 2.887 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (46): * Single equations (assignments): 45 * 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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.0245, allocations: 165.7 kB / 409.9 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.02454, allocations: 43.69 kB / 409.9 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008429/0.02538, allocations: 0.7561 MB / 410.7 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.02539, allocations: 11.98 kB / 410.7 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.0254, allocations: 4 kB / 410.7 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.0254, allocations: 3.984 kB / 410.7 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.02571, allocations: 441.3 kB / 411.2 MB, free: 1.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.02572, allocations: 3.938 kB / 411.2 MB, free: 1.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.342e-05/0.02581, allocations: 47.92 kB / 411.2 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.02704, allocations: 0.5899 MB / 411.8 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.02707, allocations: 12 kB / 411.8 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1417/0.1688, allocations: 1.076 MB / 412.9 MB, free: 33.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1688, allocations: 0 / 412.9 MB, free: 33.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009187/0.1697, allocations: 0.7267 MB / 413.6 MB, free: 33.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.368e-05/0.1698, allocations: 46.25 kB / 413.7 MB, free: 33.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.1698, allocations: 11.72 kB / 413.7 MB, free: 33.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.17, allocations: 19.86 kB / 413.7 MB, free: 33.85 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.1701, allocations: 34.22 kB / 413.7 MB, free: 33.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.1701, allocations: 18.97 kB / 413.7 MB, free: 33.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001654/0.1703, allocations: 212.7 kB / 413.9 MB, free: 33.72 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1703, allocations: 0 / 413.9 MB, free: 33.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003454/0.1706, allocations: 147.1 kB / 414.1 MB, free: 33.7 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (33): * Single equations (assignments): 32 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001554/0.1722, allocations: 1.659 MB / 415.7 MB, free: 32.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.1732, allocations: 0.674 MB / 416.4 MB, free: 32.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1732, allocations: 1.625 kB / 416.4 MB, free: 32.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005899/0.1738, allocations: 381.3 kB / 416.8 MB, free: 32.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.1741, allocations: 50.44 kB / 416.8 MB, free: 32.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.1783, allocations: 4.375 MB / 421.2 MB, free: 29.91 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.1784, allocations: 188.6 kB / 421.4 MB, free: 29.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.1785, allocations: 64.64 kB / 421.5 MB, free: 29.8 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.1787, allocations: 126 kB / 421.6 MB, free: 29.71 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1787, allocations: 0 / 421.6 MB, free: 29.71 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.2, allocations: 12.38 MB / 434 MB, free: 24.99 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.227/8.427, allocations: 18.39 kB / 434 MB, free: 24.98 MB / 330.7 MB " [Timeout remaining time 651] (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableLoad_res.csv --start-time 0 --stop-time 3.15324e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12613 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.28829897288233] Failed to read output from testmodel.py, exit status != 0: 8.537081693299115 8.54538352 8.533822225 Calling exit ...