Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.LargerNetwork.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.LargerNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_LargerNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.LargerNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_LargerNetwork",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 107.7 kB / 16.31 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001956/0.001956, allocations: 191.2 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04744/0.04744, allocations: 8.104 MB / 299.2 MB, free: 6.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 67.89 kB / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2156, allocations: 51.5 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.LargerNetwork): time 0.009979/0.2256, allocations: 14.71 MB / 428.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007201/0.2329, allocations: 3.957 MB / 432 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.2347, allocations: 44 kB / 432.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.2362, allocations: 0.6902 MB / 432.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003962/0.2402, allocations: 1.63 MB / 434.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.244, allocations: 2.086 MB / 436.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004677/0.2486, allocations: 3.588 MB / 440 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.2504, allocations: 1.185 MB / 441.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002538/0.253, allocations: 1.506 MB / 442.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00278/0.2558, allocations: 1.883 MB / 444.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001209/0.257, allocations: 300 kB / 444.9 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002169/0.2592, allocations: 0.5622 MB / 445.5 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.2607, allocations: 0.7548 MB / 446.2 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003516/0.2643, allocations: 1.675 MB / 447.9 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004787/0.2691, allocations: 3.609 MB / 451.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2691, allocations: 4 kB / 451.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2691, allocations: 0 / 451.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.205e-05/0.2692, allocations: 0 / 451.5 MB, free: 3.234 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 598 * Number of variables: 598 Notification: Performance of Generate backend data structure: time 0.03473/0.3039, allocations: 8.181 MB / 459.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3039, allocations: 15.83 kB / 459.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004991/0.3045, allocations: 353.4 kB / 460.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008097/0.3053, allocations: 380.8 kB / 460.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002517/0.3078, allocations: 1.539 MB / 462 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004268/0.3082, allocations: 0.7464 MB / 462.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004013/0.3086, allocations: 268.4 kB / 463 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005699/0.3144, allocations: 3.791 MB / 466.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.3144, allocations: 0 / 466.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003116/0.3147, allocations: 112 kB / 466.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-05/0.3148, allocations: 56 kB / 466.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005651/0.3204, allocations: 3.591 MB / 470.5 MB, free: 15.88 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01934/0.3398, allocations: 14.1 MB / 484.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007575/0.3474, allocations: 7.588 MB / 492.2 MB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004521/0.352, allocations: 2.829 MB / 495 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004004/0.3524, allocations: 87.28 kB / 495.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004969/0.3574, allocations: 3.012 MB / 498.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of pre-optimization done (n=453): time 6.372e-06/0.3574, allocations: 0 / 498.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of matching and sorting (n=453): time 0.01454/0.3719, allocations: 9.041 MB / 0.4953 GB, free: 9.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.3721, allocations: 184 kB / 0.4955 GB, free: 9.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002198/0.3743, allocations: 1.48 MB / 0.4969 GB, free: 8.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006108/0.3749, allocations: 133.7 kB / 0.497 GB, free: 7.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000626/0.3756, allocations: 0.8381 MB / 0.4979 GB, free: 7.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/0.3769, allocations: 1.444 MB / 0.4993 GB, free: 5.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001323/0.3783, allocations: 0.7541 MB / 0.5 GB, free: 4.836 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3784, allocations: 309 kB / 0.5003 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003883/0.3823, allocations: 2.442 MB / 0.5027 GB, free: 2.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1699/0.5522, allocations: 2.763 MB / 0.5054 GB, free: 88.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008007/0.5603, allocations: 5.307 MB / 0.5106 GB, free: 86.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.067e-05/0.5603, allocations: 0 / 0.5106 GB, free: 86.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=590) (initialization): time 0.01425/0.5746, allocations: 7.898 MB / 0.5183 GB, free: 83.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.5747, allocations: 5.812 kB / 0.5183 GB, free: 83.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.5747, allocations: 0.6562 kB / 0.5183 GB, free: 83.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03693/0.6116, allocations: 21.55 MB / 0.5393 GB, free: 66.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.6138, allocations: 0.5474 MB / 0.5399 GB, free: 66.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.626, allocations: 6.859 MB / 0.5466 GB, free: 59.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.6298, allocations: 413.8 kB / 0.547 GB, free: 59.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004027/0.6302, allocations: 148 kB / 0.5471 GB, free: 59.21 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 (b61106.degradedMode,$PRE.b61106.degradedMode,b87656.degradedMode,$PRE.b87656.degradedMode,b56131.degradedMode,$PRE.b56131.degradedMode,b61275.degradedMode,$PRE.b61275.degradedMode,b61273.degradedMode,$PRE.b61273.degradedMode,b61274.degradedMode,$PRE.b61274.degradedMode,b61089.degradedMode,$PRE.b61089.degradedMode,b61227.degradedMode,$PRE.b61227.degradedMode,b11403.degradedMode,$PRE.b11403.degradedMode,b11407.degradedMode,$PRE.b11407.degradedMode,b61254.degradedMode,$PRE.b61254.degradedMode,b61260.degradedMode,$PRE.b61260.degradedMode,b11465.degradedMode,$PRE.b11465.degradedMode,b87694.degradedMode,$PRE.b87694.degradedMode,b61121.degradedMode,$PRE.b61121.degradedMode,b61232.degradedMode,$PRE.b61232.degradedMode,b11480.degradedMode,$PRE.b11480.degradedMode,b61256.degradedMode,$PRE.b61256.degradedMode,b11458.degradedMode,$PRE.b11458.degradedMode,b61280.degradedMode,$PRE.b61280.degradedMode,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (375): * Single equations (assignments): 374 * 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 {(79,137)} Notification: Performance of prepare postOptimizeDAE: time 0.001215/0.6314, allocations: 0.5337 MB / 0.5476 GB, free: 58.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005804/0.632, allocations: 309.2 kB / 0.5479 GB, free: 58.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/0.6422, allocations: 7.782 MB / 0.5555 GB, free: 50.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/0.6423, allocations: 55.98 kB / 0.5556 GB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.6423, allocations: 0 / 0.5556 GB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.63e-05/0.6424, allocations: 23.91 kB / 0.5556 GB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01606/0.6584, allocations: 12.55 MB / 0.5678 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/0.6585, allocations: 0 / 0.5678 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.6597, allocations: 407.5 kB / 0.5682 GB, free: 37.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03059/0.6903, allocations: 10.16 MB / 0.5782 GB, free: 27.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008086/0.6912, allocations: 107.9 kB / 0.5783 GB, free: 27.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.7032, allocations: 7.034 MB / 0.5851 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7032, allocations: 0 / 0.5851 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/0.715, allocations: 7.646 MB / 0.5926 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.7166, allocations: 0.9606 MB / 0.5935 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005073/0.7171, allocations: 84.66 kB / 0.5936 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00288/0.72, allocations: 268.3 kB / 0.5939 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006338/0.7207, allocations: 311.5 kB / 0.5942 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002881/0.7209, allocations: 152 kB / 0.5943 GB, free: 10.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.7222, allocations: 0.9269 MB / 0.5952 GB, free: 9.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7222, allocations: 0 / 0.5952 GB, free: 9.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001922/0.7242, allocations: 1.058 MB / 0.5962 GB, free: 8.918 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,b61280.degradedMode,b11458.degradedMode,b61256.degradedMode,b11480.degradedMode,b61232.degradedMode,b61121.degradedMode,b87694.degradedMode,b11465.degradedMode,b61260.degradedMode,b61254.degradedMode,b11407.degradedMode,b11403.degradedMode,b61227.degradedMode,b61089.degradedMode,b61274.degradedMode,b61273.degradedMode,b61275.degradedMode,b56131.degradedMode,b87656.degradedMode,b61106.degradedMode) * Number of discrete states: 20 (b61089.degradedMode,b11407.degradedMode,b11403.degradedMode,b61275.degradedMode,b61273.degradedMode,b61254.degradedMode,b61274.degradedMode,b61260.degradedMode,b11465.degradedMode,b61227.degradedMode,b87656.degradedMode,b56131.degradedMode,b61256.degradedMode,b11480.degradedMode,b87694.degradedMode,b61232.degradedMode,b11458.degradedMode,b61121.degradedMode,b61280.degradedMode,b61106.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 269 * 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 {(80,156)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01186/0.736, allocations: 8.398 MB / 0.6044 GB, free: 500 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.02614/0.7622, allocations: 7.178 MB / 0.6115 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/0.7623, allocations: 11 kB / 0.6115 GB, free: 9.348 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01319/0.7755, allocations: 4.175 MB / 0.6155 GB, free: 5.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003154/0.7787, allocations: 389.9 kB / 0.6159 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05797/0.8366, allocations: 36.52 MB / 0.6516 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.8378, allocations: 1.716 MB / 0.6533 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001232/0.839, allocations: 337.5 kB / 0.6536 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/0.8403, allocations: 1.148 MB / 0.6547 GB, free: 11.16 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8403, allocations: 0 / 0.6547 GB, free: 11.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2778/1.118, allocations: 93.86 MB / 0.7464 GB, free: 109.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/14.38, allocations: 4.75 kB / 0.7464 GB, free: 109.6 MB / 462.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.LargerNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.LargerNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.LargerNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.LargerNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.LargerNetwork_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_LargerNetwork.fmu > PowerSysPro_PowerSysPro.Examples.LargerNetwork.pipe 2>&1)