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/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 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.000836/0.000836, allocations: 96.7 kB / 15.74 MB, free: 424 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.000835/0.0008351, allocations: 172.4 kB / 16.62 MB, free: 6.555 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.25/1.25, allocations: 223.2 MB / 240.6 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1471/0.1471, allocations: 8.077 MB / 299.8 MB, free: 2.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002957, allocations: 11.98 kB / 363 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0823/0.08261, allocations: 52.51 MB / 415.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.001685/0.08432, allocations: 1.422 MB / 416.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.08633, allocations: 1.595 MB / 418.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.08647, allocations: 4 kB / 418.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.08679, allocations: 107.5 kB / 418.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.08712, allocations: 115.3 kB / 418.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.08843, allocations: 0.7631 MB / 419.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003733/0.08882, allocations: 298.7 kB / 419.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.08897, allocations: 48.7 kB / 419.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.08916, allocations: 123.5 kB / 419.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.08938, allocations: 151.3 kB / 420.1 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.267e-05/0.08943, allocations: 16 kB / 420.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000362/0.0898, allocations: 203.8 kB / 420.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.754e-05/0.08985, allocations: 43.77 kB / 420.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.566e-05/0.08994, allocations: 73.58 kB / 420.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003716/0.09031, allocations: 355.3 kB / 420.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.09033, allocations: 0 / 420.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.09034, allocations: 0 / 420.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.09035, allocations: 0 / 420.8 MB, free: 3.301 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.003169/0.09352, allocations: 1.015 MB / 421.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.09356, allocations: 8.031 kB / 421.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.32e-05/0.09364, allocations: 54.55 kB / 421.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.471e-05/0.09373, allocations: 35.61 kB / 421.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.09404, allocations: 285.6 kB / 422.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.09407, allocations: 16 kB / 422.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.369e-05/0.09416, allocations: 20 kB / 422.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005795/0.09475, allocations: 342.8 kB / 422.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.09477, allocations: 0 / 422.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.0948, allocations: 8 kB / 422.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.09482, allocations: 7.953 kB / 422.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004662/0.09529, allocations: 271.8 kB / 422.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.09654, allocations: 0.94 MB / 423.7 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1595/0.256, allocations: 438.2 kB / 424.2 MB, free: 41.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/0.2563, allocations: 202.7 kB / 424.4 MB, free: 41.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007788/0.2571, allocations: 0.8089 MB / 425.2 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.2576, allocations: 378.9 kB / 425.5 MB, free: 40.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.2576, allocations: 0.6562 kB / 425.5 MB, free: 40.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00221/0.2598, allocations: 1.041 MB / 426.6 MB, free: 40.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.2599, allocations: 219.5 kB / 426.8 MB, free: 40.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.2601, allocations: 256.5 kB / 427 MB, free: 39.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.2601, allocations: 36.7 kB / 427.1 MB, free: 39.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.2602, allocations: 151.9 kB / 427.2 MB, free: 39.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.2602, allocations: 103 kB / 427.3 MB, free: 39.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.8e-05/0.2603, allocations: 6.531 kB / 427.3 MB, free: 39.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.396e-05/0.2603, allocations: 347.7 kB / 427.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.2605, allocations: 129.3 kB / 427.8 MB, free: 39.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.2608, allocations: 237.5 kB / 428 MB, free: 39.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.261, allocations: 194.9 kB / 428.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.261, allocations: 3.125 kB / 428.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008437/0.2619, allocations: 0.586 MB / 428.8 MB, free: 39.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.2619, allocations: 42.25 kB / 428.9 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2619, allocations: 3.312 kB / 428.9 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.2632, allocations: 363.3 kB / 429.2 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.2634, allocations: 62.41 kB / 429.3 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.2647, allocations: 2.149 MB / 431.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.265, allocations: 86.56 kB / 431.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/0.2651, allocations: 19.38 kB / 431.5 MB, free: 37.26 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: 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 varTra.tapChanger.tap:DISCRETE(start = varTra.tapChanger.startTap fixed = true ) "Current tap position" type: Integer slackBusRamp.U:VARIABLE(start = slackBusRamp.UNom unit = "V" fixed = true ) 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 ($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 () * 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 (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.0002005/0.2653, allocations: 219.8 kB / 431.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.2653, allocations: 37.47 kB / 431.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.2668, allocations: 0.8307 MB / 432.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2668, allocations: 5.438 kB / 432.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2668, allocations: 3.188 kB / 432.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2668, allocations: 0 / 432.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/0.2671, allocations: 441.2 kB / 433 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2671, allocations: 0 / 433 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.2673, allocations: 29.88 kB / 433.1 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.2685, allocations: 420 kB / 433.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.2686, allocations: 17.25 kB / 433.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.2701, allocations: 2.277 MB / 435.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2701, allocations: 0 / 435.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.2717, allocations: 1.046 MB / 436.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.2719, allocations: 153.5 kB / 437 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.2719, allocations: 21.72 kB / 437 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.2722, allocations: 61.89 kB / 437.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.973e-05/0.2723, allocations: 34.28 kB / 437.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.2724, allocations: 17.19 kB / 437.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.2725, allocations: 191.9 kB / 437.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2725, allocations: 0 / 437.3 MB, free: 34.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.2729, allocations: 103 kB / 437.4 MB, free: 34.31 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 (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.00181/0.2747, allocations: 1.628 MB / 439 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009272/0.2756, allocations: 0.652 MB / 439.7 MB, free: 32.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2756, allocations: 0 / 439.7 MB, free: 32.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006418/0.2763, allocations: 0.549 MB / 440.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.2765, allocations: 32.25 kB / 440.3 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.2789, allocations: 2.127 MB / 442.4 MB, free: 31.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.2791, allocations: 0.7629 MB / 443.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.2792, allocations: 30.28 kB / 443.2 MB, free: 30.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.2793, allocations: 90.19 kB / 443.3 MB, free: 30.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2793, allocations: 0 / 443.3 MB, free: 30.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.2966, allocations: 8.438 MB / 451.7 MB, free: 29.78 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001309/0.2968, allocations: 229.2 kB / 451.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/2, allocations: 0 / 451.9 MB, free: 29.54 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/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) Environment - environmentSimulation: