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.00122/0.00122, allocations: 107.8 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.001156/0.001156, allocations: 190 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.289/1.289, 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.05278/0.05278, allocations: 8.094 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.1002, allocations: 51.52 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.WithVariableLoad): time 0.004771/0.105, allocations: 3.209 MB / 468.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.1073, allocations: 1.106 MB / 469.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000402/0.1077, allocations: 8 kB / 469.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006176/0.1083, allocations: 163 kB / 470 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.1094, allocations: 258.5 kB / 470.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002608/0.112, allocations: 1.28 MB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009007/0.1129, allocations: 0.5214 MB / 472 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.1132, allocations: 130.9 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003598/0.1136, allocations: 211.2 kB / 472.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004664/0.114, allocations: 243 kB / 472.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.1142, allocations: 44 kB / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007639/0.115, allocations: 319.7 kB / 473 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.1151, allocations: 87.61 kB / 473.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003398/0.1154, allocations: 234.8 kB / 473.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.1165, allocations: 0.6825 MB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1166, allocations: 3.938 kB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1166, allocations: 0 / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.1166, 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.004733/0.1213, allocations: 1.312 MB / 475.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1214, allocations: 11.89 kB / 475.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.1215, allocations: 66.72 kB / 475.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.1217, allocations: 52.38 kB / 475.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.1222, allocations: 351.3 kB / 475.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.777e-05/0.1223, allocations: 54.83 kB / 475.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.503e-05/0.1224, allocations: 32.38 kB / 475.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009298/0.1233, allocations: 492.5 kB / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1233, allocations: 0 / 476.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.013e-05/0.1234, allocations: 12 kB / 476.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.1234, allocations: 8 kB / 476.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008532/0.1243, allocations: 466 kB / 476.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.1271, allocations: 1.972 MB / 478.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.1283, allocations: 0.5468 MB / 479.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005438/0.1288, allocations: 341.5 kB / 479.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001544/0.129, allocations: 89.42 kB / 479.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009012/0.1299, allocations: 0.5282 MB / 480.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.285e-06/0.1299, allocations: 3.938 kB / 480.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.005964/0.1359, allocations: 1.9 MB / 482.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.136, allocations: 203.9 kB / 482.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003685/0.1364, allocations: 308.5 kB / 482.7 MB, free: 1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-05/0.1365, allocations: 45.64 kB / 482.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1366, allocations: 176.8 kB / 482.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.1368, allocations: 161.7 kB / 483 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.137, allocations: 106.1 kB / 483.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1371, allocations: 358.7 kB / 483.5 MB, free: 148 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005056/0.1376, allocations: 285.2 kB / 483.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005292/0.1382, allocations: 350 kB / 484.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00776/0.1459, allocations: 2.149 MB / 486.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.146, allocations: 0 / 486.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003516/0.1495, allocations: 1.301 MB / 487.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.03e-05/0.1496, allocations: 33.7 kB / 487.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.1496, allocations: 15.91 kB / 487.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003678/0.1533, allocations: 0.855 MB / 488.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.1536, allocations: 83.83 kB / 488.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.1554, allocations: 1.266 MB / 489.8 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005931/0.156, allocations: 87.53 kB / 489.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.033e-05/0.156, allocations: 23.98 kB / 489.9 MB, free: 9.602 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.0004134/0.1565, allocations: 219.2 kB / 490.1 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.1566, allocations: 43.53 kB / 490.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.1587, allocations: 1.224 MB / 491.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1587, allocations: 8 kB / 491.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1587, allocations: 0 / 491.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1587, allocations: 3.984 kB / 491.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000675/0.1594, allocations: 0.6267 MB / 492 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1594, allocations: 4 kB / 492 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.1596, allocations: 47.91 kB / 492.1 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003595/0.1632, allocations: 0.9078 MB / 493 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.1633, allocations: 19.98 kB / 493 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.1652, allocations: 1.401 MB / 494.4 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1652, allocations: 0 / 494.4 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.1671, allocations: 1.197 MB / 495.6 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.1674, allocations: 188.5 kB / 495.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.1675, allocations: 24 kB / 495.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.168, allocations: 67.92 kB / 495.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.1681, allocations: 52.36 kB / 495.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.1682, allocations: 23.92 kB / 496 MB, free: 3.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002441/0.1684, allocations: 227.1 kB / 496.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1684, allocations: 0 / 496.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004721/0.1689, allocations: 143.8 kB / 496.3 MB, free: 3.027 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.002323/0.1713, allocations: 1.778 MB / 498.1 MB, free: 1.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.1732, allocations: 0.9208 MB / 499 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.1732, allocations: 0 / 499 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.1745, allocations: 0.6763 MB / 499.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.1749, allocations: 59.06 kB / 499.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.1856, allocations: 5.599 MB / 0.4935 GB, free: 9.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.1861, allocations: 0.8046 MB / 0.4943 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.1862, allocations: 43.25 kB / 0.4943 GB, free: 8.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.1864, allocations: 131.4 kB / 0.4945 GB, free: 8.832 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1864, allocations: 4 kB / 0.4945 GB, free: 8.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2428/0.4293, allocations: 15.02 MB / 0.5091 GB, free: 47.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.48, allocations: 3.75 kB / 0.5091 GB, free: 47.55 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableTransformers_WithVariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.WithVariableLoad.pipe 2>&1)