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.001527/0.001527, allocations: 101.5 kB / 16.31 MB, free: 5.879 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.00154/0.00154, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.312/1.312, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04449/0.04449, allocations: 8.093 MB / 299.2 MB, free: 6.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.89 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.211, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer2): time 0.003008/0.214, allocations: 1.829 MB / 415.2 MB, free: 23.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.2159, allocations: 1.699 MB / 416.9 MB, free: 22.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.961e-05/0.2161, allocations: 4 kB / 416.9 MB, free: 22.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003699/0.2164, allocations: 135.2 kB / 417 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.2167, allocations: 143 kB / 417.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.2181, allocations: 0.941 MB / 418.1 MB, free: 20.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.2184, allocations: 366.6 kB / 418.5 MB, free: 20.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2186, allocations: 78.95 kB / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.369e-05/0.2187, allocations: 135.5 kB / 418.7 MB, free: 20.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.2189, allocations: 155.3 kB / 418.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.2189, allocations: 32 kB / 418.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.2192, allocations: 231.8 kB / 419.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.2193, allocations: 55.7 kB / 419.1 MB, free: 19.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2194, allocations: 163.2 kB / 419.3 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.2198, allocations: 494.7 kB / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2198, allocations: 0 / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2198, allocations: 4 kB / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2198, allocations: 3.938 kB / 419.8 MB, free: 19.11 MB / 302.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.003204/0.223, allocations: 1.062 MB / 420.8 MB, free: 18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.2231, allocations: 11.89 kB / 420.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.299e-05/0.2231, allocations: 54.67 kB / 420.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.2232, allocations: 32.56 kB / 420.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.2235, allocations: 298.8 kB / 421.2 MB, free: 17.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.2235, allocations: 12.38 kB / 421.2 MB, free: 17.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-05/0.2236, allocations: 24.56 kB / 421.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.2241, allocations: 330.9 kB / 421.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2242, allocations: 0 / 421.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.2242, allocations: 12 kB / 421.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2242, allocations: 7.984 kB / 421.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.2246, allocations: 271.8 kB / 421.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.2258, allocations: 0.9283 MB / 422.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007345/0.2265, allocations: 446.1 kB / 423.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.2268, allocations: 200.8 kB / 423.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006908/0.2275, allocations: 0.8192 MB / 424.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005318/0.2281, allocations: 380.4 kB / 424.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.693e-06/0.2281, allocations: 0 / 424.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002543/0.2306, allocations: 1.032 MB / 425.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.2307, allocations: 217.6 kB / 425.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.2309, allocations: 270.4 kB / 426.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.2309, allocations: 37.7 kB / 426.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.231, allocations: 136.8 kB / 426.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6e-05/0.2311, allocations: 110.5 kB / 426.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-05/0.2312, allocations: 77.69 kB / 426.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.2312, allocations: 342.8 kB / 426.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.2314, allocations: 128.4 kB / 426.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.2317, allocations: 242.7 kB / 427.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002847/0.2345, allocations: 1.025 MB / 428.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2345, allocations: 0 / 428.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000895/0.2354, allocations: 0.5861 MB / 428.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.2355, allocations: 45.69 kB / 428.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2355, allocations: 0 / 428.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.2369, allocations: 355.3 kB / 429.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.2371, allocations: 71.84 kB / 429.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.2386, allocations: 2.26 MB / 431.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004046/0.2391, allocations: 87.69 kB / 431.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.2391, allocations: 20 kB / 431.6 MB, free: 6.496 MB / 302.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.0002371/0.2393, allocations: 209.1 kB / 431.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.577e-05/0.2394, allocations: 31.66 kB / 431.9 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.241, allocations: 0.8313 MB / 432.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.241, allocations: 4 kB / 432.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.241, allocations: 3.938 kB / 432.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.241, allocations: 3.984 kB / 432.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.2413, allocations: 429.2 kB / 433.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2414, allocations: 4 kB / 433.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.2415, allocations: 35.98 kB / 433.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.243, allocations: 411 kB / 433.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.243, allocations: 11.98 kB / 433.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.2449, allocations: 2.379 MB / 435.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2449, allocations: 0 / 435.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.2466, allocations: 1.046 MB / 437 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.2467, allocations: 148.7 kB / 437.1 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.239e-05/0.2468, allocations: 19.98 kB / 437.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003466/0.2472, allocations: 54.64 kB / 437.2 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2473, allocations: 39.94 kB / 437.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.2473, allocations: 19.98 kB / 437.3 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001591/0.2475, allocations: 190 kB / 437.5 MB, free: 348 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2475, allocations: 0 / 437.5 MB, free: 348 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004423/0.2479, allocations: 96 kB / 437.6 MB, free: 252 kB / 302.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.002412/0.2504, allocations: 1.619 MB / 439.2 MB, free: 14.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.2517, allocations: 0.6615 MB / 439.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2517, allocations: 0 / 439.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008534/0.2525, allocations: 0.5496 MB / 440.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.2528, allocations: 41.17 kB / 440.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004873/0.2577, allocations: 3.599 MB / 444 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.258, allocations: 0.7686 MB / 444.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.2582, allocations: 26.28 kB / 444.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.2583, allocations: 95.34 kB / 444.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2583, allocations: 0 / 444.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.2879, allocations: 9.383 MB / 454.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.48, allocations: 15.42 kB / 454.3 MB, free: 15.38 MB / 334.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)