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.001425/0.001425, allocations: 106.8 kB / 16.45 MB, free: 6.457 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.001744/0.001745, allocations: 186.4 kB / 17.39 MB, free: 5.668 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.275/1.275, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04595/0.04595, allocations: 8.106 MB / 299.3 MB, free: 6.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 67.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08875, allocations: 51.51 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer1): time 0.003807/0.09261, allocations: 2.657 MB / 468.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.09483, allocations: 1.367 MB / 469.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.09505, allocations: 4 kB / 469.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005773/0.09565, allocations: 263 kB / 469.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005498/0.09622, allocations: 262.8 kB / 470 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001855/0.09808, allocations: 1.019 MB / 471.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006264/0.09872, allocations: 470.4 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.09889, allocations: 72.98 kB / 471.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.09918, allocations: 211.3 kB / 471.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.09958, allocations: 307 kB / 472.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.771e-05/0.09967, allocations: 32 kB / 472.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005404/0.1002, allocations: 319.7 kB / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.1004, allocations: 143.6 kB / 472.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.1007, allocations: 242.4 kB / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009214/0.1016, allocations: 0.7238 MB / 473.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1016, allocations: 3.938 kB / 473.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1016, allocations: 0 / 473.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.494e-05/0.1016, allocations: 0 / 473.5 MB, free: 10.57 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.004196/0.1058, allocations: 1.385 MB / 474.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1059, allocations: 15.89 kB / 474.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.47e-05/0.106, allocations: 54.73 kB / 475 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.1061, allocations: 68.52 kB / 475.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006487/0.1068, allocations: 476.2 kB / 475.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.1068, allocations: 20.38 kB / 475.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.142e-05/0.1069, allocations: 24.12 kB / 475.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006893/0.1076, allocations: 414.2 kB / 476 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1076, allocations: 3.938 kB / 476 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.1076, allocations: 12 kB / 476 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1076, allocations: 4 kB / 476 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005752/0.1082, allocations: 340.9 kB / 476.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.1099, allocations: 1.105 MB / 477.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000912/0.1108, allocations: 0.5105 MB / 477.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004043/0.1113, allocations: 273 kB / 478.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/0.1123, allocations: 0.8705 MB / 479.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006261/0.113, allocations: 480.6 kB / 479.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.603e-06/0.113, allocations: 0 / 479.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003302/0.1163, allocations: 1.409 MB / 481 MB, free: 2.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.1164, allocations: 251.5 kB / 481.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007222/0.1172, allocations: 0.6787 MB / 481.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.1172, allocations: 37.7 kB / 481.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.1174, allocations: 260.8 kB / 482.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.1175, allocations: 119 kB / 482.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1177, allocations: 90.05 kB / 482.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1178, allocations: 374.8 kB / 482.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.1181, allocations: 200.9 kB / 482.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003354/0.1184, allocations: 303.2 kB / 483.2 MB, free: 356 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003361/0.1218, allocations: 1.402 MB / 484.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1218, allocations: 0 / 484.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001712/0.1235, allocations: 0.9349 MB / 485.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.1236, allocations: 75.33 kB / 485.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.1236, allocations: 4 kB / 485.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.125, allocations: 355.2 kB / 486 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.1253, allocations: 63.91 kB / 486.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.1273, allocations: 2.268 MB / 488.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/0.1278, allocations: 75.81 kB / 488.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.1279, allocations: 20 kB / 488.4 MB, free: 10.85 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.0004714/0.1284, allocations: 348.2 kB / 488.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.1285, allocations: 67.61 kB / 488.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002258/0.1307, allocations: 1.165 MB / 490 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1308, allocations: 0 / 490 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1308, allocations: 4 kB / 490 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1308, allocations: 0 / 490 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.1313, allocations: 0.5479 MB / 490.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1313, allocations: 8 kB / 490.6 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.1315, allocations: 31.92 kB / 490.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/0.133, allocations: 399.1 kB / 491 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/0.133, allocations: 23.92 kB / 491 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002273/0.1353, allocations: 2.373 MB / 493.4 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1353, allocations: 4.062 kB / 493.4 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/0.1375, allocations: 1.174 MB / 494.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.1378, allocations: 204.5 kB / 494.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.1379, allocations: 23.98 kB / 494.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.1383, allocations: 59.88 kB / 494.8 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.1384, allocations: 39.95 kB / 494.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.1385, allocations: 19.98 kB / 494.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005902/0.1391, allocations: 494.8 kB / 495.4 MB, free: 3.574 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1391, allocations: 0 / 495.4 MB, free: 3.574 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.1396, allocations: 143.9 kB / 495.5 MB, free: 3.434 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.00268/0.1423, allocations: 1.792 MB / 497.3 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.1438, allocations: 0.8765 MB / 498.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1439, allocations: 0 / 498.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.1449, allocations: 0.7168 MB / 498.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.1453, allocations: 54.94 kB / 499 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.1544, allocations: 7.003 MB / 0.4941 GB, free: 8.684 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.1549, allocations: 0.8756 MB / 0.495 GB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.155, allocations: 55.25 kB / 0.495 GB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.1553, allocations: 191.4 kB / 0.4952 GB, free: 7.547 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1553, allocations: 0 / 0.4952 GB, free: 7.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2289/0.3842, allocations: 14.28 MB / 0.5091 GB, free: 46.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12, allocations: 11.36 kB / 0.5092 GB, free: 46.8 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)