Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.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.VariableTransformer1,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.VariableTransformer1,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1",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.001773/0.001773, allocations: 104 kB / 16.45 MB, free: 6.438 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.001962/0.001962, allocations: 189.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.389/1.389, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05006/0.05006, allocations: 8.095 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 63.89 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1021, allocations: 51.52 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer1): time 0.004118/0.1063, allocations: 2.661 MB / 468.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.1085, allocations: 1.355 MB / 469.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1087, allocations: 8 kB / 469.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005424/0.1092, allocations: 259 kB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004786/0.1097, allocations: 262.8 kB / 470 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001964/0.1117, allocations: 1.019 MB / 471.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006208/0.1123, allocations: 474.4 kB / 471.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.1125, allocations: 72.98 kB / 471.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.1127, allocations: 207.3 kB / 471.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003763/0.1131, allocations: 307 kB / 472.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1132, allocations: 32 kB / 472.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.1137, allocations: 319.7 kB / 472.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.1139, allocations: 143.5 kB / 472.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.1142, allocations: 250.5 kB / 472.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008485/0.115, allocations: 0.7199 MB / 473.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.115, allocations: 0 / 473.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.115, allocations: 0 / 473.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.115, allocations: 0 / 473.5 MB, free: 10.59 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.003955/0.119, allocations: 1.385 MB / 474.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.1191, allocations: 15.89 kB / 474.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.919e-05/0.1191, allocations: 54.73 kB / 475 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1193, allocations: 72.45 kB / 475.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006588/0.1199, allocations: 472.3 kB / 475.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.12, allocations: 16.38 kB / 475.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.481e-05/0.12, allocations: 28.12 kB / 475.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007368/0.1208, allocations: 414.2 kB / 476 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1208, allocations: 0 / 476 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.1208, allocations: 11.94 kB / 476 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1209, allocations: 4 kB / 476 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005967/0.1215, allocations: 336.8 kB / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.1232, allocations: 1.109 MB / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009619/0.1241, allocations: 0.504 MB / 477.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004312/0.1246, allocations: 277 kB / 478.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/0.1257, allocations: 0.8665 MB / 479.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006764/0.1264, allocations: 484.6 kB / 479.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/0.1264, allocations: 0 / 479.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003456/0.1298, allocations: 1.406 MB / 481 MB, free: 2.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.13, allocations: 247.5 kB / 481.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007577/0.1308, allocations: 0.6787 MB / 481.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.1308, allocations: 41.7 kB / 481.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.131, allocations: 272.7 kB / 482.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/0.1312, allocations: 115.1 kB / 482.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.1313, allocations: 90.05 kB / 482.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1315, allocations: 374.8 kB / 482.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.1318, allocations: 200.9 kB / 482.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.1322, allocations: 307.1 kB / 483.2 MB, free: 372 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.1357, allocations: 1.394 MB / 484.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1357, allocations: 8 kB / 484.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001786/0.1375, allocations: 0.931 MB / 485.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.599e-05/0.1376, allocations: 75.31 kB / 485.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.1376, allocations: 7.938 kB / 485.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.1391, allocations: 351.3 kB / 486 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.1393, allocations: 63.91 kB / 486.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/0.1416, allocations: 2.261 MB / 488.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.1421, allocations: 79.81 kB / 488.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.57e-05/0.1422, allocations: 23.98 kB / 488.4 MB, free: 10.87 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: 11 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.varTra.tapChanger.tap,$PRE.varTra.tapChanger.furtherTapChangeTimeout,$PRE.varTra.tapChanger.abnormalUTime,varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.increaseEvent,varTra.tapChanger.decreaseEvent,varTra.tapChanger.normalU,varTra.tapChanger.abnormalUTime,varTra.tapChanger.tap,voltage.nextEventScaled,voltage.nextEvent,$PRE.voltage.nextEvent,voltage.last,voltage.b,voltage.a,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004913/0.1427, allocations: 332.1 kB / 488.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.1428, allocations: 67.69 kB / 488.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.1452, allocations: 1.173 MB / 490 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1452, allocations: 4 kB / 490 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1452, allocations: 0 / 490 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1452, allocations: 3.984 kB / 490 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006449/0.1459, allocations: 0.5518 MB / 490.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1459, allocations: 0 / 490.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.146, allocations: 35.92 kB / 490.6 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.1476, allocations: 402.4 kB / 491 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/0.1476, allocations: 19.92 kB / 491 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002581/0.1502, allocations: 2.38 MB / 493.4 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1502, allocations: 160 / 493.4 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.1525, allocations: 1.174 MB / 494.5 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/0.1528, allocations: 204.5 kB / 494.7 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.959e-05/0.1529, allocations: 24 kB / 494.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003938/0.1533, allocations: 59.88 kB / 494.8 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.1534, allocations: 35.95 kB / 494.9 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.1534, allocations: 19.98 kB / 494.9 MB, free: 4.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005844/0.154, allocations: 494.8 kB / 495.4 MB, free: 3.602 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.154, allocations: 0 / 495.4 MB, free: 3.602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005036/0.1546, allocations: 143.9 kB / 495.5 MB, free: 3.461 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: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,voltage.nextEvent,voltage.nextEventScaled,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 16 (voltage.nextEvent,voltage.last,voltage.nextEventScaled,voltage.b,voltage.a,$whenCondition1,varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition5,$whenCondition4,varTra.tapChanger.abnormalUTime,$whenCondition3,$whenCondition2,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002848/0.1574, allocations: 1.792 MB / 497.3 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.159, allocations: 0.8804 MB / 498.2 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.159, allocations: 4 kB / 498.2 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.1601, allocations: 0.705 MB / 498.9 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.1605, allocations: 66.92 kB / 499 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009877/0.1704, allocations: 6.999 MB / 0.4941 GB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005576/0.171, allocations: 0.8795 MB / 0.495 GB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.1711, allocations: 59.19 kB / 0.495 GB, free: 7.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.1714, allocations: 187.4 kB / 0.4952 GB, free: 7.57 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1714, allocations: 0 / 0.4952 GB, free: 7.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2537/0.4251, allocations: 14.28 MB / 0.5091 GB, free: 46.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.14, allocations: 7.312 kB / 0.5091 GB, free: 46.65 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1_res.csv --start-time 0 --stop-time 350 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.14 PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe 2>&1)