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.0007299/0.00073, allocations: 103.1 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.0008936/0.0008936, allocations: 179.5 kB / 16.97 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.296/1.296, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1652/0.1652, allocations: 8.084 MB / 300.2 MB, free: 2.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004926/0.0004927, allocations: 8 kB / 363.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1164, allocations: 52.5 MB / 416.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.001864/0.1183, allocations: 1.51 MB / 417.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1204, allocations: 1.696 MB / 419.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.726e-05/0.1205, allocations: 4 kB / 419.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.1208, allocations: 119.5 kB / 419.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002815/0.1211, allocations: 123.3 kB / 419.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.1225, allocations: 0.907 MB / 420.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.1229, allocations: 318.7 kB / 420.8 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.123, allocations: 56.95 kB / 420.8 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.1231, allocations: 123.5 kB / 421 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.1233, allocations: 147.3 kB / 421.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.1234, allocations: 12 kB / 421.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003326/0.1237, allocations: 227.8 kB / 421.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.366e-05/0.1237, allocations: 43.77 kB / 421.4 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.1239, allocations: 161 kB / 421.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.1244, allocations: 474.5 kB / 422 MB, free: 2.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1244, allocations: 0 / 422 MB, free: 2.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1244, allocations: 0 / 422 MB, free: 2.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1244, allocations: 0 / 422 MB, free: 2.367 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.00341/0.1278, allocations: 1.011 MB / 423 MB, free: 1.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1279, allocations: 12.03 kB / 423 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.084e-05/0.128, allocations: 58.73 kB / 423.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.128, allocations: 28.66 kB / 423.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.1284, allocations: 298.7 kB / 423.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.1284, allocations: 16.38 kB / 423.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.755e-05/0.1285, allocations: 24.56 kB / 423.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006387/0.1292, allocations: 342.6 kB / 423.8 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.1292, allocations: 0 / 423.8 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.1292, allocations: 12 kB / 423.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1293, allocations: 8 kB / 423.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005002/0.1298, allocations: 267.8 kB / 424 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1565/0.2863, allocations: 0.9354 MB / 425 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008009/0.2872, allocations: 442.6 kB / 425.4 MB, free: 41.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.2875, allocations: 203.9 kB / 425.6 MB, free: 41.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008004/0.2883, allocations: 0.8115 MB / 426.4 MB, free: 40.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.2888, allocations: 377.9 kB / 426.8 MB, free: 40.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.445e-06/0.2888, allocations: 0 / 426.8 MB, free: 40.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002567/0.2914, allocations: 1.036 MB / 427.8 MB, free: 40.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.2915, allocations: 223.1 kB / 428 MB, free: 39.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.2917, allocations: 260.5 kB / 428.3 MB, free: 39.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.2917, allocations: 35.45 kB / 428.3 MB, free: 39.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.565e-05/0.2918, allocations: 148.8 kB / 428.5 MB, free: 39.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.883e-05/0.2919, allocations: 105.8 kB / 428.6 MB, free: 39.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.078e-05/0.2919, allocations: 48.62 kB / 428.6 MB, free: 39.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.292, allocations: 340.9 kB / 429 MB, free: 39.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/0.2922, allocations: 136.9 kB / 429.1 MB, free: 39.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.2925, allocations: 240.5 kB / 429.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.2953, allocations: 1.021 MB / 430.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2954, allocations: 3.344 kB / 430.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009167/0.2963, allocations: 0.594 MB / 431 MB, free: 38.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.2963, allocations: 42.78 kB / 431 MB, free: 38.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2963, allocations: 3.312 kB / 431 MB, free: 38.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.2977, allocations: 359 kB / 431.3 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.298, allocations: 66.77 kB / 431.4 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/0.2996, allocations: 2.153 MB / 433.6 MB, free: 36.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/0.3, allocations: 85.44 kB / 433.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.3, allocations: 21.27 kB / 433.7 MB, free: 36.82 MB / 350.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.0002313/0.3002, allocations: 212.1 kB / 433.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.3003, allocations: 34.91 kB / 433.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.3019, allocations: 0.8406 MB / 434.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3019, allocations: 0 / 434.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3019, allocations: 5.172 kB / 434.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3019, allocations: 1.312 kB / 434.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/0.3023, allocations: 435.5 kB / 435.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3023, allocations: 3.938 kB / 435.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.3025, allocations: 37.34 kB / 435.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001438/0.3039, allocations: 416.7 kB / 435.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.304, allocations: 8.469 kB / 435.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.3057, allocations: 2.28 MB / 437.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3057, allocations: 4.453 kB / 437.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.3075, allocations: 1.054 MB / 439 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.3077, allocations: 154.2 kB / 439.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.973e-05/0.3077, allocations: 17.78 kB / 439.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.3081, allocations: 63.02 kB / 439.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.922e-05/0.3082, allocations: 35.27 kB / 439.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.3082, allocations: 17.48 kB / 439.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.3084, allocations: 186 kB / 439.4 MB, free: 33.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3084, allocations: 0 / 439.4 MB, free: 33.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000378/0.3088, allocations: 107 kB / 439.5 MB, free: 33.47 MB / 350.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.002102/0.3109, allocations: 1.638 MB / 441.2 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.312, allocations: 0.642 MB / 441.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.312, allocations: 3.375 kB / 441.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000756/0.3127, allocations: 0.5481 MB / 442.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.313, allocations: 29.59 kB / 442.4 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.3173, allocations: 3.727 MB / 446.1 MB, free: 29.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.3176, allocations: 0.7635 MB / 446.9 MB, free: 28.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.3177, allocations: 33.3 kB / 446.9 MB, free: 28.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.3179, allocations: 92.45 kB / 447 MB, free: 28.37 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3179, allocations: 0 / 447 MB, free: 28.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.336, allocations: 8.445 MB / 455.5 MB, free: 27.7 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/0.3361, allocations: 254 kB / 455.7 MB, free: 27.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.162, allocations: 2.781 kB / 455.7 MB, free: 27.44 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2_fmu --startTime=0 --stopTime=3000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer2.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer2.pipe 2>&1)