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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 108.3 kB / 19.75 MB, free: 1.879 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 221.7 kB / 23.03 MB, free: 5.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.03903/0.03903, allocations: 6.138 MB / 319.4 MB, free: 12.81 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 47.94 kB / 444.4 MB, free: 5.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1118, allocations: 55.02 MB / 499.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.004583/0.1164, allocations: 2.938 MB / 0.4906 GB, free: 11.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1185, allocations: 1.079 MB / 0.4917 GB, free: 10.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001732/0.1186, allocations: 7.938 kB / 0.4917 GB, free: 10.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.1191, allocations: 159 kB / 0.4918 GB, free: 9.855 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000637/0.1197, allocations: 250.5 kB / 0.4921 GB, free: 9.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.122, allocations: 1.181 MB / 0.4932 GB, free: 8.426 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007315/0.1228, allocations: 0.498 MB / 0.4937 GB, free: 7.926 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.1229, allocations: 80.64 kB / 0.4938 GB, free: 7.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002376/0.1232, allocations: 203.3 kB / 0.494 GB, free: 7.641 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000326/0.1235, allocations: 223 kB / 0.4942 GB, free: 7.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.649e-05/0.1236, allocations: 44 kB / 0.4942 GB, free: 7.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005764/0.1242, allocations: 299.8 kB / 0.4945 GB, free: 7.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-05/0.1243, allocations: 95.61 kB / 0.4946 GB, free: 6.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.1245, allocations: 187.1 kB / 0.4948 GB, free: 6.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009001/0.1254, allocations: 0.7007 MB / 0.4955 GB, free: 6.105 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1254, allocations: 4 kB / 0.4955 GB, free: 6.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1254, allocations: 0 / 0.4955 GB, free: 6.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1254, allocations: 3.938 kB / 0.4955 GB, free: 6.098 MB / 366.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.004636/0.13, allocations: 1.251 MB / 0.4967 GB, free: 4.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.1301, allocations: 11.97 kB / 0.4967 GB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.1302, allocations: 70.72 kB / 0.4968 GB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1303, allocations: 48.66 kB / 0.4968 GB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.1308, allocations: 290.4 kB / 0.4971 GB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.73e-05/0.1309, allocations: 54.92 kB / 0.4972 GB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.314e-05/0.1309, allocations: 36.31 kB / 0.4972 GB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.132, allocations: 0.6194 MB / 0.4978 GB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.132, allocations: 0 / 0.4978 GB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.266e-05/0.1321, allocations: 16 kB / 0.4978 GB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.1321, allocations: 8 kB / 0.4978 GB, free: 3.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00099/0.1331, allocations: 0.5 MB / 0.4983 GB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/0.1359, allocations: 1.271 MB / 0.4995 GB, free: 1.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.1371, allocations: 0.5181 MB / 0.5001 GB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.1377, allocations: 311.2 kB / 0.5003 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.1378, allocations: 12.33 kB / 0.5004 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.1389, allocations: 0.6885 MB / 0.501 GB, free: 148 kB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 2.775e-06/0.1389, allocations: 0 / 0.501 GB, free: 148 kB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.006438/0.1453, allocations: 1.854 MB / 0.5028 GB, free: 14.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.1455, allocations: 203.9 kB / 0.503 GB, free: 14.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.1459, allocations: 316.5 kB / 0.5033 GB, free: 13.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.19e-05/0.146, allocations: 41.69 kB / 0.5034 GB, free: 13.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.1462, allocations: 181 kB / 0.5036 GB, free: 13.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.1464, allocations: 162.6 kB / 0.5037 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.1466, allocations: 106.1 kB / 0.5038 GB, free: 13.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002661/0.1468, allocations: 354.7 kB / 0.5041 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006235/0.1475, allocations: 334.7 kB / 0.5045 GB, free: 12.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006395/0.1481, allocations: 409.1 kB / 0.5049 GB, free: 12.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008256/0.1564, allocations: 2.164 MB / 0.507 GB, free: 9.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.1564, allocations: 0 / 0.507 GB, free: 9.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003622/0.16, allocations: 1.342 MB / 0.5083 GB, free: 8.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.986e-05/0.16, allocations: 41.69 kB / 0.5083 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1601, allocations: 3.938 kB / 0.5083 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003766/0.1638, allocations: 0.8941 MB / 0.5092 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.1641, allocations: 79.89 kB / 0.5093 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/0.1662, allocations: 1.335 MB / 0.5106 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005974/0.1668, allocations: 87.73 kB / 0.5107 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-05/0.1668, allocations: 27.98 kB / 0.5107 GB, free: 5.984 MB / 382.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.0003949/0.1672, allocations: 245.2 kB / 0.5109 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.453e-05/0.1673, allocations: 43.77 kB / 0.511 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.1695, allocations: 1.133 MB / 0.5121 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/0.1695, allocations: 8 kB / 0.5121 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1695, allocations: 0 / 0.5121 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1695, allocations: 3.984 kB / 0.5121 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006208/0.1701, allocations: 489.2 kB / 0.5125 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1701, allocations: 4 kB / 0.5125 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.1703, allocations: 43.98 kB / 0.5126 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003815/0.1742, allocations: 0.9412 MB / 0.5135 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/0.1742, allocations: 16 kB / 0.5135 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.1766, allocations: 1.49 MB / 0.515 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1766, allocations: 0 / 0.515 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.1786, allocations: 1.098 MB / 0.5161 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.1789, allocations: 131.5 kB / 0.5162 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-05/0.179, allocations: 24 kB / 0.5162 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.1795, allocations: 55.94 kB / 0.5163 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.1797, allocations: 60.28 kB / 0.5163 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.1797, allocations: 16 kB / 0.5163 GB, free: 28 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.212/0.3917, allocations: 224 kB / 0.5165 GB, free: 31.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3917, allocations: 0 / 0.5165 GB, free: 31.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006984/0.3924, allocations: 140.3 kB / 0.5167 GB, free: 31.87 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: 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.002184/0.3946, allocations: 1.683 MB / 0.5183 GB, free: 31.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.3964, allocations: 0.9081 MB / 0.5192 GB, free: 31.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3964, allocations: 0 / 0.5192 GB, free: 31.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.3976, allocations: 0.5198 MB / 0.5197 GB, free: 30.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.398, allocations: 44.78 kB / 0.5198 GB, free: 30.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.4091, allocations: 5.747 MB / 0.5254 GB, free: 28.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.4094, allocations: 198 kB / 0.5256 GB, free: 28.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.4096, allocations: 45.61 kB / 0.5256 GB, free: 28.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.4098, allocations: 133.6 kB / 0.5257 GB, free: 28.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4098, allocations: 1.062 kB / 0.5257 GB, free: 28.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04329/0.4531, allocations: 13.45 MB / 0.5389 GB, free: 24.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.65, allocations: 5.031 kB / 0.5389 GB, free: 24.18 MB / 382.1 MB " [Timeout remaining time 646] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.477313543204218] Failed to read output from testmodel.py, exit status != 0: 13.777885171119124 13.792671207 13.664343582 Calling exit ...