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.0007794/0.0007795, allocations: 101.9 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009241/0.0009241, allocations: 178.9 kB / 16.96 MB, free: 6.875 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.355/1.355, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1591/0.1591, allocations: 8.081 MB / 300.2 MB, free: 2.926 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003085, allocations: 12 kB / 363.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 52.51 MB / 416.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer1): time 0.002698/0.1063, allocations: 2.326 MB / 418.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.1085, allocations: 1.379 MB / 419.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1087, allocations: 4 kB / 419.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005207/0.1092, allocations: 231.3 kB / 420.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000519/0.1097, allocations: 239.1 kB / 420.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001853/0.1116, allocations: 0.9615 MB / 421.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005914/0.1122, allocations: 418.5 kB / 421.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.1124, allocations: 60.98 kB / 421.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003345/0.1127, allocations: 171.4 kB / 421.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004186/0.1131, allocations: 283.1 kB / 422.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.518e-05/0.1132, allocations: 16 kB / 422.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005495/0.1138, allocations: 299.7 kB / 422.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1139, allocations: 143.4 kB / 422.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002409/0.1142, allocations: 244.2 kB / 422.8 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008139/0.115, allocations: 0.689 MB / 423.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.115, allocations: 4 kB / 423.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.115, allocations: 0 / 423.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1151, allocations: 0 / 423.5 MB, free: 0.8086 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.1812/0.2963, allocations: 1.263 MB / 424.8 MB, free: 41.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.2963, allocations: 11.06 kB / 424.8 MB, free: 41.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.2965, allocations: 56.5 kB / 424.9 MB, free: 41.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.2966, allocations: 62.81 kB / 424.9 MB, free: 41.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.2971, allocations: 475.4 kB / 425.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.2972, allocations: 18.66 kB / 425.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.2972, allocations: 23.19 kB / 425.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006567/0.2979, allocations: 413.5 kB / 425.8 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2979, allocations: 7.875 kB / 425.8 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.298, allocations: 13.66 kB / 425.9 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.298, allocations: 2.031 kB / 425.9 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005024/0.2985, allocations: 340.7 kB / 426.2 MB, free: 40.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.3, allocations: 1.121 MB / 427.3 MB, free: 40.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008553/0.3009, allocations: 0.5067 MB / 427.8 MB, free: 40.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003605/0.3012, allocations: 277.2 kB / 428.1 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008927/0.3022, allocations: 0.8641 MB / 429 MB, free: 39.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005829/0.3027, allocations: 490.7 kB / 429.4 MB, free: 39.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.933e-06/0.3028, allocations: 0 / 429.4 MB, free: 39.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0031/0.3059, allocations: 1.411 MB / 430.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.766e-05/0.306, allocations: 250.4 kB / 431.1 MB, free: 39.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006639/0.3066, allocations: 0.6851 MB / 431.8 MB, free: 38.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.3067, allocations: 32.91 kB / 431.8 MB, free: 38.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.3069, allocations: 259 kB / 432.1 MB, free: 38.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.307, allocations: 116.2 kB / 432.2 MB, free: 38.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-05/0.3071, allocations: 51.3 kB / 432.2 MB, free: 38.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3073, allocations: 379.1 kB / 432.6 MB, free: 38.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003315/0.3076, allocations: 198.6 kB / 432.8 MB, free: 38.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.308, allocations: 302.7 kB / 433.1 MB, free: 38.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003233/0.3112, allocations: 1.403 MB / 434.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3112, allocations: 0 / 434.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001761/0.313, allocations: 0.9405 MB / 435.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.937e-05/0.3131, allocations: 75.45 kB / 435.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.3131, allocations: 3.281 kB / 435.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/0.3145, allocations: 362.7 kB / 435.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.3148, allocations: 62.03 kB / 435.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.3164, allocations: 2.149 MB / 438.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.3169, allocations: 90.7 kB / 438.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.3169, allocations: 27.22 kB / 438.2 MB, free: 35.45 MB / 350.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.0003708/0.3173, allocations: 329.3 kB / 438.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.521e-05/0.3174, allocations: 63.81 kB / 438.6 MB, free: 35.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.3194, allocations: 1.172 MB / 439.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3194, allocations: 3.219 kB / 439.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3194, allocations: 3.469 kB / 439.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3194, allocations: 0 / 439.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.3199, allocations: 0.5514 MB / 440.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3199, allocations: 0 / 440.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.32, allocations: 32.44 kB / 440.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001423/0.3214, allocations: 413.8 kB / 440.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.291e-05/0.3215, allocations: 24.69 kB / 440.8 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/0.3232, allocations: 2.277 MB / 443 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3232, allocations: 0 / 443 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.3252, allocations: 1.181 MB / 444.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.3254, allocations: 208 kB / 444.4 MB, free: 31.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.3255, allocations: 20.78 kB / 444.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.3259, allocations: 62.03 kB / 444.5 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.678e-05/0.326, allocations: 38.66 kB / 444.5 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.326, allocations: 20.78 kB / 444.6 MB, free: 31.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004607/0.3265, allocations: 496.3 kB / 445 MB, free: 31.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3265, allocations: 0 / 445 MB, free: 31.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005165/0.327, allocations: 143.4 kB / 445.2 MB, free: 31.24 MB / 350.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.002363/0.3294, allocations: 1.787 MB / 447 MB, free: 30.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.3308, allocations: 0.879 MB / 447.8 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3308, allocations: 3.938 kB / 447.8 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008658/0.3317, allocations: 0.7109 MB / 448.6 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.3321, allocations: 53.81 kB / 448.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008464/0.3406, allocations: 7.32 MB / 455.9 MB, free: 25.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.3409, allocations: 0.8764 MB / 456.8 MB, free: 24.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.3411, allocations: 61.98 kB / 456.9 MB, free: 24.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.3413, allocations: 183.7 kB / 457 MB, free: 24.69 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3413, allocations: 0 / 457 MB, free: 24.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/0.3704, allocations: 13.05 MB / 470.1 MB, free: 23.7 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.3706, allocations: 245.6 kB / 470.3 MB, free: 23.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.302, allocations: 0 / 470.3 MB, free: 23.45 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1_fmu --startTime=0 --stopTime=350 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe 2>&1)