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.001485/0.001485, allocations: 103.2 kB / 16.31 MB, free: 6.391 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.001644/0.001644, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.337/1.337, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04576/0.04576, allocations: 8.1 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 361.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2075, allocations: 51.51 MB / 413.4 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.003904/0.2115, allocations: 3.195 MB / 416.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.2129, allocations: 1.11 MB / 417.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.213, allocations: 4 kB / 417.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004572/0.2135, allocations: 171 kB / 417.8 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005939/0.2141, allocations: 262.4 kB / 418.1 MB, free: 20.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001806/0.2159, allocations: 1.264 MB / 419.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004381/0.2164, allocations: 0.5214 MB / 419.9 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.2166, allocations: 130.2 kB / 420 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.2167, allocations: 211.2 kB / 420.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002404/0.217, allocations: 254.9 kB / 420.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.035e-05/0.2171, allocations: 44 kB / 420.5 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.2175, allocations: 315.8 kB / 420.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.2176, allocations: 87.62 kB / 420.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.2177, allocations: 226.9 kB / 421.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005429/0.2183, allocations: 0.6816 MB / 421.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2183, allocations: 0 / 421.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2183, allocations: 0 / 421.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2183, allocations: 0 / 421.8 MB, free: 17.11 MB / 302.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.00406/0.2224, allocations: 1.312 MB / 423.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2224, allocations: 15.89 kB / 423.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.234e-05/0.2225, allocations: 70.72 kB / 423.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.2226, allocations: 44.47 kB / 423.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.223, allocations: 355.3 kB / 423.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.795e-05/0.223, allocations: 62.75 kB / 423.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.2231, allocations: 32.38 kB / 423.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007454/0.2239, allocations: 488.6 kB / 424.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2239, allocations: 0 / 424.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.448e-05/0.2239, allocations: 12 kB / 424.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.2239, allocations: 4 kB / 424.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007278/0.2247, allocations: 462 kB / 424.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.2269, allocations: 1.976 MB / 426.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009611/0.2279, allocations: 0.5546 MB / 427.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004776/0.2284, allocations: 333.5 kB / 427.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.2285, allocations: 97.36 kB / 427.6 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007409/0.2292, allocations: 0.5436 MB / 428.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.154e-06/0.2293, allocations: 3.938 kB / 428.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=51): time 0.005603/0.2349, allocations: 1.88 MB / 430 MB, free: 8.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.2349, allocations: 199.9 kB / 430.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.2352, allocations: 320.4 kB / 430.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.2353, allocations: 45.7 kB / 430.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.924e-05/0.2354, allocations: 176.8 kB / 430.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.28e-05/0.2355, allocations: 153.8 kB / 430.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.2356, allocations: 102.2 kB / 431 MB, free: 7.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.779e-05/0.2357, allocations: 358.7 kB / 431.3 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.2361, allocations: 285.1 kB / 431.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/0.2366, allocations: 350 kB / 431.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007462/0.244, allocations: 2.166 MB / 434.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.2441, allocations: 0 / 434.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003124/0.2472, allocations: 1.301 MB / 435.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.2473, allocations: 41.69 kB / 435.4 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2473, allocations: 3.938 kB / 435.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003487/0.2508, allocations: 0.8605 MB / 436.3 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.2511, allocations: 71.89 kB / 436.4 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.2525, allocations: 1.281 MB / 437.7 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005687/0.2531, allocations: 91.53 kB / 437.8 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.732e-05/0.2531, allocations: 19.98 kB / 437.8 MB, free: 0.5391 MB / 302.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.0002949/0.2534, allocations: 232.8 kB / 438 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.31e-05/0.2535, allocations: 43.53 kB / 438 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.2556, allocations: 1.22 MB / 439.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.2556, allocations: 7.984 kB / 439.3 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2557, allocations: 0 / 439.3 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.2557, allocations: 3.984 kB / 439.3 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005982/0.2563, allocations: 0.6422 MB / 439.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.2563, allocations: 0 / 439.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.2565, allocations: 47.91 kB / 440 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003773/0.2603, allocations: 0.9117 MB / 440.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-05/0.2603, allocations: 20 kB / 440.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.2624, allocations: 1.401 MB / 442.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2624, allocations: 4 kB / 442.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.2644, allocations: 1.174 MB / 443.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002505/0.2647, allocations: 200.4 kB / 443.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.2648, allocations: 20 kB / 443.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.2653, allocations: 67.86 kB / 443.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.2655, allocations: 52.38 kB / 443.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.2655, allocations: 23.98 kB / 443.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.2658, allocations: 223.1 kB / 444 MB, free: 10.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2658, allocations: 0 / 444 MB, free: 10.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004529/0.2663, allocations: 147.9 kB / 444.2 MB, free: 9.941 MB / 318.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.002312/0.2686, allocations: 1.782 MB / 446 MB, free: 8.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.2707, allocations: 0.9402 MB / 446.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2707, allocations: 0 / 446.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.2721, allocations: 0.6686 MB / 447.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.2725, allocations: 45.09 kB / 447.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.2831, allocations: 5.629 MB / 453.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.2835, allocations: 0.8045 MB / 454.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001794/0.2836, allocations: 47.25 kB / 454.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.2839, allocations: 131.4 kB / 454.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of SimCode: time 2.164e-06/0.2839, allocations: 0 / 454.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.3171, allocations: 14.29 MB / 468.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.24, allocations: 4.594 kB / 468.5 MB, free: 1.578 MB / 334.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)