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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.4 MB / 235.1 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008581/0.0008581, allocations: 94.36 kB / 286.1 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05353/0.05353, allocations: 8.108 MB / 345.1 MB, free: 1.922 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.05e-05/5.057e-05, allocations: 4 kB / 405.6 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 52.52 MB / 458.1 MB, free: 9.363 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3923/0.5011, allocations: 80.6 MB / 0.5261 GB, free: 5.418 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.5014, allocations: 67.34 kB / 0.5261 GB, free: 5.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02421/0.5256, allocations: 8.956 MB / 0.5349 GB, free: 14.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.5257, allocations: 4 kB / 0.5349 GB, free: 14.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.5257, allocations: 7.938 kB / 0.5349 GB, free: 14.06 MB / 362.7 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.002325/0.528, allocations: 0.7362 MB / 0.5356 GB, free: 13.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.5281, allocations: 8.031 kB / 0.5356 GB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.534e-05/0.5282, allocations: 52.67 kB / 0.5357 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.5283, allocations: 31.62 kB / 0.5357 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005226/0.5288, allocations: 291.7 kB / 0.536 GB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.5289, allocations: 10.81 kB / 0.536 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.529, allocations: 17.69 kB / 0.536 GB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.5296, allocations: 316.7 kB / 0.5363 GB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.5296, allocations: 0 / 0.5363 GB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.5296, allocations: 13.88 kB / 0.5363 GB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.5297, allocations: 4 kB / 0.5363 GB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004223/0.5301, allocations: 251.3 kB / 0.5366 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.5316, allocations: 0.9842 MB / 0.5375 GB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006812/0.5323, allocations: 334.3 kB / 0.5378 GB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.5326, allocations: 183.8 kB / 0.538 GB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007928/0.5334, allocations: 0.7482 MB / 0.5387 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004562/0.5339, allocations: 370 kB / 0.5391 GB, free: 10.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 2.695e-06/0.5339, allocations: 0 / 0.5391 GB, free: 10.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001356/0.5352, allocations: 0.601 MB / 0.5397 GB, free: 9.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.5354, allocations: 221.3 kB / 0.5399 GB, free: 9.734 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.5356, allocations: 240 kB / 0.5401 GB, free: 9.535 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.5357, allocations: 32.95 kB / 0.5401 GB, free: 9.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.5358, allocations: 137.8 kB / 0.5403 GB, free: 9.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.253e-05/0.5359, allocations: 110 kB / 0.5404 GB, free: 9.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/0.5359, allocations: 6.938 kB / 0.5404 GB, free: 9.293 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.536, allocations: 339 kB / 0.5407 GB, free: 8.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.5362, allocations: 117.8 kB / 0.5408 GB, free: 8.902 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.5365, allocations: 194.7 kB / 0.541 GB, free: 8.738 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.5367, allocations: 160.2 kB / 0.5412 GB, free: 8.629 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.5367, allocations: 0 / 0.5412 GB, free: 8.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001436/0.5382, allocations: 0.6167 MB / 0.5418 GB, free: 8.152 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.5382, allocations: 41.62 kB / 0.5418 GB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.5382, allocations: 8.188 kB / 0.5418 GB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/0.5398, allocations: 345.1 kB / 0.5421 GB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.54, allocations: 55.16 kB / 0.5422 GB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002137/0.5421, allocations: 2.138 MB / 0.5443 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/0.5426, allocations: 78.92 kB / 0.5444 GB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.5426, allocations: 19.38 kB / 0.5444 GB, free: 5.543 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: varTra.tapChanger.furtherTapChangeTimeout:DISCRETE(start = varTra.tapChanger.nextTapChangeTimeout unit = "s" fixed = false protected = true ) "Time lag between the first change and the following tap" type: Real varTra.tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = false protected = true ) "Time when the signal U went out its normal range" type: Real varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = false ) "Current tap position" type: Integer slackBusRamp.U:VARIABLE(start = slackBusRamp.UNom unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.varTra.tapChanger.tap,varTra.tapChanger.tap,$PRE.varTra.tapChanger.abnormalUTime,varTra.tapChanger.abnormalUTime,varTra.tapChanger.normalU,varTra.tapChanger.decreaseEvent,varTra.tapChanger.increaseEvent,$PRE.varTra.tapChanger.furtherTapChangeTimeout,varTra.tapChanger.furtherTapChangeTimeout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002804/0.5429, allocations: 191.4 kB / 0.5446 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.831e-05/0.543, allocations: 35.62 kB / 0.5446 GB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.5445, allocations: 0.7921 MB / 0.5454 GB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5445, allocations: 4 kB / 0.5454 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5445, allocations: 3.984 kB / 0.5454 GB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.5446, allocations: 0 / 0.5454 GB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004696/0.545, allocations: 457 kB / 0.5458 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.545, allocations: 0 / 0.5458 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.5452, allocations: 39.78 kB / 0.5459 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001428/0.5467, allocations: 389.5 kB / 0.5462 GB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/0.5467, allocations: 15.31 kB / 0.5462 GB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.5489, allocations: 2.226 MB / 0.5484 GB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.549, allocations: 3.938 kB / 0.5484 GB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.5507, allocations: 0.9848 MB / 0.5494 GB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.5509, allocations: 157 kB / 0.5495 GB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.273e-05/0.551, allocations: 16.94 kB / 0.5495 GB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.5514, allocations: 63.19 kB / 0.5496 GB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.5515, allocations: 45.95 kB / 0.5496 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.556e-05/0.5516, allocations: 15.67 kB / 0.5497 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001994/0.5518, allocations: 197.4 kB / 0.5498 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5518, allocations: 0 / 0.5498 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004131/0.5522, allocations: 97.77 kB / 0.5499 GB, free: 0.7422 MB / 362.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002155/0.5544, allocations: 1.582 MB / 0.5515 GB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.5555, allocations: 0.5881 MB / 0.5521 GB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5555, allocations: 0 / 0.5521 GB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007821/0.5563, allocations: 0.5457 MB / 0.5526 GB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.5565, allocations: 27.05 kB / 0.5526 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.5576, allocations: 0.4969 MB / 0.5531 GB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.558, allocations: 0.7684 MB / 0.5539 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.5582, allocations: 34.05 kB / 0.5539 GB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.5583, allocations: 87.03 kB / 0.554 GB, free: 13.39 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5584, allocations: 0 / 0.554 GB, free: 13.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02419/0.5826, allocations: 8.63 MB / 0.5624 GB, free: 4.941 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.5829, allocations: 203.2 kB / 0.5626 GB, free: 4.707 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.703, allocations: 0 / 0.5626 GB, free: 4.707 MB / 378.7 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/linux/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)