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.001559/0.001559, allocations: 105.9 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.001654/0.001654, allocations: 189 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.306/1.306, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04668/0.04668, allocations: 8.098 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 67.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08975, allocations: 51.5 MB / 465.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.00324/0.09302, allocations: 1.837 MB / 467.3 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.09552, allocations: 1.684 MB / 469 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.09575, allocations: 4 kB / 469 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005087/0.0963, allocations: 147.2 kB / 469.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005592/0.09687, allocations: 151.1 kB / 469.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.0987, allocations: 0.9529 MB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005436/0.09925, allocations: 366.7 kB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.09943, allocations: 72.86 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.09965, allocations: 143.5 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.0999, allocations: 159.3 kB / 471 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.369e-05/0.09996, allocations: 31.98 kB / 471 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004661/0.1004, allocations: 235.8 kB / 471.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.261e-05/0.1005, allocations: 55.7 kB / 471.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1007, allocations: 155.2 kB / 471.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000809/0.1015, allocations: 498.3 kB / 471.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1015, allocations: 0 / 471.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1015, allocations: 0 / 471.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1015, allocations: 0 / 471.9 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.00379/0.1053, allocations: 1.077 MB / 473 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1054, allocations: 11.89 kB / 473 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.673e-05/0.1055, allocations: 54.73 kB / 473.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.997e-05/0.1056, allocations: 36.75 kB / 473.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.1059, allocations: 290.9 kB / 473.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.106, allocations: 20.38 kB / 473.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.1061, allocations: 20.56 kB / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006302/0.1067, allocations: 342.8 kB / 473.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1067, allocations: 4 kB / 473.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.1068, allocations: 11.94 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1068, allocations: 4 kB / 473.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.1073, allocations: 263.8 kB / 474.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.1087, allocations: 0.9323 MB / 475 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009002/0.1096, allocations: 449.9 kB / 475.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003662/0.11, allocations: 196.8 kB / 475.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001073/0.1111, allocations: 0.8191 MB / 476.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006751/0.1118, allocations: 378.7 kB / 476.8 MB, free: 7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.1118, allocations: 0 / 476.8 MB, free: 7 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002828/0.1146, allocations: 1.041 MB / 477.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.1148, allocations: 221.6 kB / 478.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002658/0.115, allocations: 250.6 kB / 478.3 MB, free: 5.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.1151, allocations: 37.7 kB / 478.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.377e-05/0.1152, allocations: 148.8 kB / 478.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.343e-05/0.1153, allocations: 107.2 kB / 478.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1154, allocations: 81.62 kB / 478.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1156, allocations: 338.8 kB / 479 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.1158, allocations: 136.4 kB / 479.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.1162, allocations: 238.5 kB / 479.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003158/0.1193, allocations: 1.025 MB / 480.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.1194, allocations: 0 / 480.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001092/0.1205, allocations: 0.5938 MB / 481 MB, free: 2.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/0.1205, allocations: 41.69 kB / 481 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1205, allocations: 352 / 481 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.122, allocations: 367.1 kB / 481.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.1223, allocations: 63.91 kB / 481.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.1243, allocations: 2.257 MB / 483.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004497/0.1248, allocations: 75.84 kB / 483.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.1248, allocations: 20 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.0003434/0.1252, allocations: 233.2 kB / 484 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.1253, allocations: 39.73 kB / 484.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.127, allocations: 0.8198 MB / 484.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.127, allocations: 4 kB / 484.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.127, allocations: 3.938 kB / 484.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.127, allocations: 0 / 484.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004013/0.1274, allocations: 433.2 kB / 485.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1274, allocations: 0 / 485.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1276, allocations: 35.97 kB / 485.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001459/0.1291, allocations: 411.6 kB / 485.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.1291, allocations: 11.98 kB / 485.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.1313, allocations: 2.373 MB / 488.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1313, allocations: 0 / 488.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.1333, allocations: 1.055 MB / 489.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.1335, allocations: 156.8 kB / 489.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.1336, allocations: 19.94 kB / 489.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.134, allocations: 51.94 kB / 489.4 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.1341, allocations: 31.95 kB / 489.5 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-05/0.1341, allocations: 16 kB / 489.5 MB, free: 9.586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001813/0.1343, allocations: 194 kB / 489.7 MB, free: 9.395 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1343, allocations: 0 / 489.7 MB, free: 9.395 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004137/0.1347, allocations: 96 kB / 489.8 MB, free: 9.301 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.002338/0.1371, allocations: 1.619 MB / 491.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.1383, allocations: 0.6423 MB / 492 MB, free: 6.969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1384, allocations: 4.688 kB / 492 MB, free: 6.965 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008688/0.1392, allocations: 0.568 MB / 492.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.1395, allocations: 32.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.004663/0.1442, allocations: 3.596 MB / 496.2 MB, free: 2.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1445, allocations: 0.7566 MB / 497 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001193/0.1446, allocations: 34.27 kB / 497 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.1448, allocations: 99.39 kB / 497.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1448, allocations: 0 / 497.1 MB, free: 1.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03599/0.1808, allocations: 9.491 MB / 0.4947 GB, free: 8.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.16, allocations: 21.97 kB / 0.4947 GB, free: 8.332 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)