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.001449/0.001449, allocations: 102.6 kB / 16.45 MB, free: 6.445 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.001517/0.001517, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.242/1.242, 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.04448/0.04448, allocations: 8.097 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08445/0.08562, allocations: 51.53 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.003915/0.08958, allocations: 3.213 MB / 468.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.0915, allocations: 1.102 MB / 469.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.09165, allocations: 4 kB / 469.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.09208, allocations: 179 kB / 470 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005678/0.09265, allocations: 258.3 kB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002055/0.09472, allocations: 1.276 MB / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006152/0.09534, allocations: 0.5253 MB / 472.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.09557, allocations: 128 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.09578, allocations: 211.2 kB / 472.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003025/0.09609, allocations: 247 kB / 472.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.921e-05/0.09617, allocations: 44 kB / 472.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004984/0.09667, allocations: 311.7 kB / 473 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.212e-05/0.09678, allocations: 87.61 kB / 473.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.097, allocations: 238.8 kB / 473.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007589/0.09777, allocations: 0.6852 MB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.09778, allocations: 3.938 kB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.09779, allocations: 0 / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.0978, allocations: 0 / 474 MB, free: 10.14 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.004177/0.102, allocations: 1.33 MB / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.102, allocations: 11.89 kB / 475.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.675e-05/0.1021, allocations: 62.73 kB / 475.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1023, allocations: 56.64 kB / 475.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.1027, allocations: 347.6 kB / 475.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.378e-05/0.1027, allocations: 50.83 kB / 475.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.206e-05/0.1028, allocations: 40.38 kB / 475.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008393/0.1037, allocations: 484.6 kB / 476.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1037, allocations: 4 kB / 476.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.225e-05/0.1037, allocations: 12 kB / 476.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1038, allocations: 8 kB / 476.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008264/0.1046, allocations: 465.9 kB / 476.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.1072, allocations: 1.973 MB / 478.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.1082, allocations: 0.5613 MB / 479.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.1088, allocations: 333.4 kB / 479.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001575/0.109, allocations: 97.41 kB / 479.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008571/0.1098, allocations: 0.5321 MB / 480.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 1.963e-06/0.1098, allocations: 3.938 kB / 480.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.005601/0.1155, allocations: 1.9 MB / 482.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.1156, allocations: 195.9 kB / 482.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/0.1159, allocations: 324.4 kB / 482.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.116, allocations: 37.7 kB / 482.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1161, allocations: 177 kB / 482.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.1163, allocations: 166.6 kB / 483.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.1164, allocations: 110.2 kB / 483.2 MB, free: 464 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1166, allocations: 350.7 kB / 483.5 MB, free: 104 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004929/0.1171, allocations: 293.1 kB / 483.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.1176, allocations: 346 kB / 484.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00742/0.125, allocations: 2.149 MB / 486.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1251, allocations: 0 / 486.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003196/0.1283, allocations: 1.293 MB / 487.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.693e-05/0.1283, allocations: 41.69 kB / 487.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1283, allocations: 3.938 kB / 487.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003378/0.1317, allocations: 0.8705 MB / 488.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.132, allocations: 71.91 kB / 488.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.1337, allocations: 1.274 MB / 489.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.1343, allocations: 87.67 kB / 490 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.1343, allocations: 20 kB / 490 MB, free: 9.562 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.0003293/0.1347, allocations: 219.2 kB / 490.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.1348, allocations: 51.7 kB / 490.2 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.1368, allocations: 1.22 MB / 491.5 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.1368, allocations: 8 kB / 491.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1368, allocations: 0 / 491.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1368, allocations: 0 / 491.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006088/0.1374, allocations: 0.6346 MB / 492.1 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.1374, allocations: 4 kB / 492.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.1376, allocations: 43.92 kB / 492.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003374/0.141, allocations: 0.9117 MB / 493.1 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.1411, allocations: 19.98 kB / 493.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001954/0.143, allocations: 1.401 MB / 494.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.143, allocations: 0 / 494.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.1449, allocations: 1.19 MB / 495.7 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.1451, allocations: 200.6 kB / 495.9 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.121e-05/0.1452, allocations: 27.95 kB / 495.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004774/0.1457, allocations: 63.98 kB / 496 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.1459, allocations: 60.38 kB / 496 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.977e-05/0.1459, allocations: 16 kB / 496 MB, free: 3.332 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.1462, allocations: 231 kB / 496.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1462, allocations: 0 / 496.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004269/0.1466, allocations: 139.9 kB / 496.4 MB, free: 2.973 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.002227/0.1488, allocations: 1.782 MB / 498.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.1507, allocations: 0.9247 MB / 499.1 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.1507, allocations: 4.125 kB / 499.1 MB, free: 212 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001251/0.152, allocations: 0.6684 MB / 499.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.1523, allocations: 45.09 kB / 499.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009934/0.1623, allocations: 5.609 MB / 0.4936 GB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.1626, allocations: 0.8085 MB / 0.4944 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.1628, allocations: 47.23 kB / 0.4944 GB, free: 8.887 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.163, allocations: 139.4 kB / 0.4945 GB, free: 8.754 MB / 382.1 MB Notification: Performance of SimCode: time 2.866e-06/0.163, allocations: 0 / 0.4945 GB, free: 8.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2134/0.3764, allocations: 14.45 MB / 0.5087 GB, free: 47.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.19, allocations: 3.203 kB / 0.5087 GB, free: 47.45 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)