Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.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.VariableTransformer2,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableTransformers.VariableTransformer2,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2",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.00175/0.00175, allocations: 106 kB / 16.45 MB, free: 6.449 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.001855/0.001855, 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.389/1.389, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05232/0.05232, allocations: 8.105 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.89 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1025, allocations: 51.51 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.003283/0.1059, allocations: 1.836 MB / 467.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.1084, allocations: 1.688 MB / 469 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.1085, allocations: 4 kB / 469 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004393/0.109, allocations: 143.2 kB / 469.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003994/0.1094, allocations: 147 kB / 469.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.1112, allocations: 0.9453 MB / 470.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005836/0.1118, allocations: 370.6 kB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.112, allocations: 76.89 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.1122, allocations: 135.5 kB / 470.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.1124, allocations: 159.3 kB / 471 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.1125, allocations: 36 kB / 471 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004601/0.1129, allocations: 239.8 kB / 471.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.164e-05/0.113, allocations: 51.72 kB / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.1132, allocations: 163.2 kB / 471.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006504/0.1139, allocations: 494.4 kB / 472 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1139, allocations: 3.938 kB / 472 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1139, allocations: 0 / 472 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1139, allocations: 0 / 472 MB, free: 12.19 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.003772/0.1177, allocations: 1.065 MB / 473 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.1178, allocations: 23.83 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.715e-05/0.1178, allocations: 50.73 kB / 473.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.375e-05/0.1179, allocations: 32.75 kB / 473.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.1183, allocations: 294.9 kB / 473.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.1183, allocations: 16.38 kB / 473.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.406e-05/0.1184, allocations: 20.56 kB / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000667/0.1191, allocations: 338.8 kB / 473.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1191, allocations: 0 / 473.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.1192, allocations: 12 kB / 473.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1192, allocations: 4 kB / 473.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006093/0.1198, allocations: 271.8 kB / 474.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.1213, allocations: 0.9323 MB / 475 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008983/0.1222, allocations: 446 kB / 475.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.1226, allocations: 208.7 kB / 475.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/0.1237, allocations: 0.8074 MB / 476.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000748/0.1245, allocations: 394.7 kB / 476.8 MB, free: 6.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.914e-06/0.1245, allocations: 0 / 476.8 MB, free: 6.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002993/0.1275, allocations: 1.021 MB / 477.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.1276, allocations: 225.6 kB / 478.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.128, allocations: 254.6 kB / 478.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.128, allocations: 33.7 kB / 478.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1281, allocations: 156.8 kB / 478.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.1283, allocations: 103.1 kB / 478.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.1284, allocations: 85.62 kB / 478.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1286, allocations: 338.8 kB / 479 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.1288, allocations: 136.4 kB / 479.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.1292, allocations: 230.6 kB / 479.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003286/0.1325, allocations: 1.029 MB / 480.4 MB, free: 3.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1325, allocations: 4 kB / 480.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001144/0.1336, allocations: 0.5938 MB / 481 MB, free: 2.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.651e-05/0.1337, allocations: 37.69 kB / 481 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1337, allocations: 4 kB / 481 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/0.1352, allocations: 359.5 kB / 481.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.1355, allocations: 71.83 kB / 481.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/0.138, allocations: 2.256 MB / 483.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004441/0.1384, allocations: 83.88 kB / 483.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.1385, allocations: 12 kB / 483.8 MB, free: 15.55 MB / 366.1 MB Warning: Assuming fixed start value for the following 4 variables: slackBusRamp.U:VARIABLE(start = slackBusRamp.UNom unit = "V" fixed = true ) type: Real 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: 12 * Number of states: 0 () * Number of discrete variables: 13 ($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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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.0003697/0.1389, allocations: 217.8 kB / 484 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.269e-05/0.1389, allocations: 43.73 kB / 484.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.1409, allocations: 0.8275 MB / 484.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1409, allocations: 0 / 484.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.1409, allocations: 7.922 kB / 484.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1409, allocations: 4 kB / 484.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004761/0.1414, allocations: 429.2 kB / 485.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1414, allocations: 0 / 485.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.1416, allocations: 31.97 kB / 485.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001603/0.1432, allocations: 407.6 kB / 485.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.1432, allocations: 15.98 kB / 485.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002655/0.1459, allocations: 2.377 MB / 488.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1459, allocations: 0 / 488.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.1481, allocations: 1.051 MB / 489.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.1483, allocations: 156.9 kB / 489.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.85e-05/0.1484, allocations: 23.94 kB / 489.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.1488, allocations: 51.94 kB / 489.4 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.1489, allocations: 39.89 kB / 489.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.149, allocations: 12 kB / 489.5 MB, free: 9.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002208/0.1492, allocations: 190 kB / 489.7 MB, free: 9.395 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1492, allocations: 4 kB / 489.7 MB, free: 9.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.1496, allocations: 96 kB / 489.8 MB, free: 9.297 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (slackBusRamp.U) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,varTra.tapChanger.tap,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 10 (varTra.tapChanger.tap,varTra.tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,varTra.tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,varTra.tapChanger.normalU) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.002635/0.1522, allocations: 1.615 MB / 491.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.1537, allocations: 0.6385 MB / 492 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.1537, allocations: 0 / 492 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009691/0.1547, allocations: 0.5803 MB / 492.6 MB, free: 6.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.1549, allocations: 28.56 kB / 492.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005168/0.1601, allocations: 3.597 MB / 496.2 MB, free: 2.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.1606, allocations: 0.7566 MB / 497 MB, free: 1.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.1608, allocations: 38.2 kB / 497 MB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1609, allocations: 91.41 kB / 497.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of SimCode: time 9.41e-07/0.1609, allocations: 0 / 497.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03781/0.1987, allocations: 9.492 MB / 0.4947 GB, free: 8.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.15, allocations: 30.02 kB / 0.4947 GB, free: 8.328 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2_res.csv --start-time 0 --stop-time 3000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.2 PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe 2>&1)