Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.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.VariableTransformers.WithVariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.WithVariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad",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.001206/0.001206, allocations: 105.4 kB / 16.45 MB, free: 6.461 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.001433/0.001434, allocations: 189 kB / 17.39 MB, free: 5.668 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.374/1.374, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05061/0.05061, allocations: 8.096 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09213/0.09388, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.004512/0.09843, allocations: 3.213 MB / 468.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1006, allocations: 1.11 MB / 469.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.1007, allocations: 4 kB / 469.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004135/0.1012, allocations: 167 kB / 470 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005886/0.1017, allocations: 262.3 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002293/0.1041, allocations: 1.268 MB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006996/0.1048, allocations: 0.5253 MB / 472 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.105, allocations: 128 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.1053, allocations: 207.2 kB / 472.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003539/0.1056, allocations: 251 kB / 472.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.014e-05/0.1057, allocations: 44 kB / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005484/0.1063, allocations: 315.7 kB / 473 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.634e-05/0.1064, allocations: 87.61 kB / 473.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002694/0.1066, allocations: 230.8 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008551/0.1075, allocations: 0.6851 MB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1075, allocations: 0 / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1075, allocations: 0 / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1075, allocations: 0 / 474 MB, free: 10.15 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.004474/0.112, allocations: 1.33 MB / 475.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1121, allocations: 11.89 kB / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.595e-05/0.1122, allocations: 70.66 kB / 475.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.1123, allocations: 52.66 kB / 475.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005591/0.1128, allocations: 355.6 kB / 475.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.328e-05/0.1129, allocations: 54.81 kB / 475.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.016e-05/0.113, allocations: 40.31 kB / 475.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000952/0.114, allocations: 484.6 kB / 476.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.114, allocations: 0 / 476.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.914e-05/0.114, allocations: 16 kB / 476.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.1141, allocations: 4 kB / 476.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009178/0.115, allocations: 462 kB / 476.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/0.118, allocations: 1.973 MB / 478.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.1192, allocations: 0.5532 MB / 479.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006089/0.1199, allocations: 337.5 kB / 479.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000171/0.12, allocations: 89.42 kB / 479.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.1211, allocations: 0.5437 MB / 480.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.124e-06/0.1211, allocations: 0 / 480.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.006237/0.1274, allocations: 1.9 MB / 482.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.1275, allocations: 199.9 kB / 482.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003955/0.1279, allocations: 320.4 kB / 482.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.128, allocations: 41.64 kB / 482.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.1281, allocations: 181 kB / 482.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.1283, allocations: 166.6 kB / 483.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.1285, allocations: 106.2 kB / 483.2 MB, free: 468 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.1287, allocations: 354.7 kB / 483.5 MB, free: 104 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005291/0.1293, allocations: 285.1 kB / 483.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/0.1298, allocations: 354 kB / 484.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008054/0.1379, allocations: 2.145 MB / 486.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.1379, allocations: 4 kB / 486.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003577/0.1415, allocations: 1.297 MB / 487.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.919e-05/0.1416, allocations: 37.69 kB / 487.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.1416, allocations: 7.938 kB / 487.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003797/0.1454, allocations: 0.855 MB / 488.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.1457, allocations: 79.89 kB / 488.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.1481, allocations: 1.27 MB / 489.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000613/0.1488, allocations: 83.67 kB / 489.9 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/0.1488, allocations: 27.98 kB / 490 MB, free: 9.566 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.abnormalUTime,varLoad.degradedMode,$PRE.varLoad.degradedMode,varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.increaseEvent,varTra.tapChanger.decreaseEvent,varTra.tapChanger.normalU,varTra.tapChanger.abnormalUTime,varTra.tapChanger.tap,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5) * 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 {(6,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0004576/0.1493, allocations: 231.2 kB / 490.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.74e-05/0.1494, allocations: 39.77 kB / 490.2 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/0.1518, allocations: 1.217 MB / 491.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1518, allocations: 4 kB / 491.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.1518, allocations: 3.984 kB / 491.5 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1518, allocations: 4 kB / 491.5 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008342/0.1527, allocations: 0.6423 MB / 492.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1527, allocations: 0 / 492.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.1529, allocations: 43.97 kB / 492.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003719/0.1566, allocations: 0.9117 MB / 493.1 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.966e-05/0.1567, allocations: 16 kB / 493.1 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/0.1591, allocations: 1.409 MB / 494.5 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.1591, allocations: 0 / 494.5 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.1614, allocations: 1.186 MB / 495.7 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.1617, allocations: 196.7 kB / 495.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.806e-05/0.1618, allocations: 27.94 kB / 495.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.1623, allocations: 63.94 kB / 496 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.1625, allocations: 48.38 kB / 496 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-05/0.1626, allocations: 27.92 kB / 496 MB, free: 3.336 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003282/0.1629, allocations: 231 kB / 496.3 MB, free: 3.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1629, allocations: 3.938 kB / 496.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000527/0.1635, allocations: 135.9 kB / 496.4 MB, free: 2.977 MB / 366.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: 12 ($whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout,varLoad.degradedMode) * Number of discrete states: 11 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU,varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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 {(6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002823/0.1663, allocations: 1.786 MB / 498.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.1686, allocations: 0.9249 MB / 499.1 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1686, allocations: 7.938 kB / 499.1 MB, free: 208 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.17, allocations: 0.6725 MB / 499.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.1705, allocations: 45.08 kB / 499.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.1816, allocations: 5.61 MB / 0.4936 GB, free: 9.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.1821, allocations: 0.8007 MB / 0.4944 GB, free: 8.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.1823, allocations: 47.25 kB / 0.4944 GB, free: 8.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.1825, allocations: 139.4 kB / 0.4945 GB, free: 8.75 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1825, allocations: 0 / 0.4945 GB, free: 8.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2432/0.4257, allocations: 14.45 MB / 0.5087 GB, free: 47.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.16, allocations: 3.172 kB / 0.5087 GB, free: 47.76 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe 2>&1)