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.001112/0.001112, allocations: 104.9 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.001198/0.001198, 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.392/1.392, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05196/0.05196, allocations: 8.095 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 63.91 kB / 361.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2054, allocations: 51.52 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableTransformers.VariableTransformer1): time 0.002957/0.2084, allocations: 2.641 MB / 416 MB, free: 22.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.2101, allocations: 1.367 MB / 417.4 MB, free: 21.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.2103, allocations: 4 kB / 417.4 MB, free: 21.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004583/0.2108, allocations: 263 kB / 417.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.2112, allocations: 254.8 kB / 417.9 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.2127, allocations: 1.027 MB / 418.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/0.2131, allocations: 466.5 kB / 419.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.2133, allocations: 81.78 kB / 419.4 MB, free: 19.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.2134, allocations: 207.3 kB / 419.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002321/0.2136, allocations: 291.1 kB / 419.9 MB, free: 19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.463e-05/0.2137, allocations: 36 kB / 420 MB, free: 18.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004336/0.2141, allocations: 319.7 kB / 420.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.2143, allocations: 151.4 kB / 420.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2145, allocations: 250.5 kB / 420.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005684/0.215, allocations: 0.7087 MB / 421.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.215, allocations: 0 / 421.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.215, allocations: 0 / 421.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2151, allocations: 0 / 421.4 MB, free: 17.55 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.003537/0.2186, allocations: 1.358 MB / 422.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2186, allocations: 11.89 kB / 422.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.414e-05/0.2187, allocations: 54.73 kB / 422.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.765e-05/0.2188, allocations: 64.19 kB / 422.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.2192, allocations: 467.8 kB / 423.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.2193, allocations: 20.38 kB / 423.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.2193, allocations: 24.12 kB / 423.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005619/0.2199, allocations: 410.1 kB / 423.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2199, allocations: 0 / 423.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.22, allocations: 16 kB / 423.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.22, allocations: 4 kB / 423.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000468/0.2204, allocations: 344 kB / 424.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.2217, allocations: 1.105 MB / 425.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007955/0.2225, allocations: 0.5116 MB / 425.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.2229, allocations: 277 kB / 426 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008629/0.2238, allocations: 0.8627 MB / 426.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006051/0.2244, allocations: 491.9 kB / 427.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.144e-06/0.2244, allocations: 0 / 427.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00313/0.2275, allocations: 1.412 MB / 428.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.2276, allocations: 247.5 kB / 429 MB, free: 9.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005526/0.2282, allocations: 0.6787 MB / 429.7 MB, free: 8.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.2282, allocations: 37.7 kB / 429.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.2284, allocations: 260.6 kB / 430 MB, free: 8.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.156e-05/0.2285, allocations: 118.4 kB / 430.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.2286, allocations: 86.05 kB / 430.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.2287, allocations: 378.8 kB / 430.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.2289, allocations: 200.9 kB / 430.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.2292, allocations: 307.1 kB / 431 MB, free: 7.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003096/0.2323, allocations: 1.398 MB / 432.4 MB, free: 5.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2323, allocations: 4 kB / 432.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001548/0.2339, allocations: 0.9275 MB / 433.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.2339, allocations: 75.33 kB / 433.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.2339, allocations: 4 kB / 433.4 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.2353, allocations: 351.3 kB / 433.8 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.2355, allocations: 63.91 kB / 433.8 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.2372, allocations: 2.26 MB / 436.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005169/0.2377, allocations: 87.41 kB / 436.2 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.2378, allocations: 20 kB / 436.2 MB, free: 1.875 MB / 302.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.0003293/0.2381, allocations: 323.5 kB / 436.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.31e-05/0.2382, allocations: 67.25 kB / 436.6 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/0.2402, allocations: 1.181 MB / 437.8 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2402, allocations: 4 kB / 437.8 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2402, allocations: 0 / 437.8 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2402, allocations: 0 / 437.8 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004854/0.2407, allocations: 0.5516 MB / 438.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2407, allocations: 0 / 438.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.2409, allocations: 31.98 kB / 438.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.2424, allocations: 403.1 kB / 438.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.935e-05/0.2425, allocations: 19.94 kB / 438.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002307/0.2448, allocations: 2.372 MB / 441.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2448, allocations: 4.156 kB / 441.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.2471, allocations: 1.174 MB / 442.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.2474, allocations: 192.2 kB / 442.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-05/0.2475, allocations: 20 kB / 442.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.2479, allocations: 67.88 kB / 442.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.248, allocations: 35.89 kB / 442.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.2481, allocations: 16 kB / 442.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005309/0.2486, allocations: 498.8 kB / 443.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.2486, allocations: 0 / 443.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004933/0.2491, allocations: 147.9 kB / 443.3 MB, free: 10.46 MB / 318.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.002699/0.2518, allocations: 1.78 MB / 445.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.2534, allocations: 0.8889 MB / 445.9 MB, free: 7.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2534, allocations: 3.938 kB / 445.9 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.2544, allocations: 0.7089 MB / 446.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.2548, allocations: 58.94 kB / 446.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009097/0.2639, allocations: 7.179 MB / 453.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.2643, allocations: 0.8718 MB / 454.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.2645, allocations: 55.25 kB / 454.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.2647, allocations: 187.4 kB / 455 MB, free: 14.41 MB / 334.1 MB Notification: Performance of SimCode: time 1.393e-06/0.2647, allocations: 8 kB / 455 MB, free: 14.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.3018, allocations: 14.1 MB / 469.1 MB, free: 484 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.64, allocations: 10.91 kB / 469.1 MB, free: 476 kB / 334.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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1_res.csv --start-time 0 --stop-time 350 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.14 PowerSysPro_PowerSysPro_Examples_VariableTransformers_VariableTransformer1.fmu > PowerSysPro_PowerSysPro.Examples.VariableTransformers.VariableTransformer1.pipe 2>&1)