Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.0011/0.0011, allocations: 97.36 kB / 16.5 MB, free: 6.648 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.00115/0.00115, allocations: 194.5 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1648/0.1648, allocations: 37.99 MB / 308.6 MB, free: 6.25 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 67.03 kB / 374.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2287, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005405/0.2342, allocations: 6.563 MB / 436.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.2363, allocations: 1.73 MB / 438.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002589/0.2365, allocations: 39.75 kB / 438.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003961/0.237, allocations: 119.3 kB / 438.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005452/0.2375, allocations: 346.5 kB / 438.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.2377, allocations: 139.8 kB / 438.9 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005801/0.2383, allocations: 1.157 MB / 440 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.2386, allocations: 186.2 kB / 440.2 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002746/0.2388, allocations: 294.6 kB / 440.5 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.2393, allocations: 430.5 kB / 440.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.478e-05/0.2393, allocations: 31.94 kB / 441 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.702e-05/0.2394, allocations: 24 kB / 441 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.2396, allocations: 191.4 kB / 441.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.2398, allocations: 270.5 kB / 441.4 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.2401, allocations: 0.5488 MB / 442 MB, free: 7.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2401, allocations: 0 / 442 MB, free: 7.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.2402, allocations: 0 / 442 MB, free: 7.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.2402, allocations: 0 / 442 MB, free: 7.695 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001209/0.2414, allocations: 0.8966 MB / 442.9 MB, free: 6.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2414, allocations: 12.03 kB / 442.9 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.378e-05/0.2415, allocations: 82.7 kB / 443 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.364e-05/0.2416, allocations: 60.19 kB / 443 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.2422, allocations: 494.3 kB / 443.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.2422, allocations: 33 kB / 443.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/0.2423, allocations: 36 kB / 443.6 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.2429, allocations: 0.539 MB / 444.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2429, allocations: 0 / 444.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.2429, allocations: 20 kB / 444.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.883e-05/0.243, allocations: 21 kB / 444.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004769/0.2434, allocations: 391.6 kB / 444.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.2452, allocations: 1.928 MB / 446.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004595/0.2457, allocations: 333.3 kB / 446.8 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.2459, allocations: 177.9 kB / 447 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.246, allocations: 11.94 kB / 447 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003001/0.2463, allocations: 288.1 kB / 447.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.423e-06/0.2463, allocations: 0 / 447.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001366/0.2477, allocations: 1.178 MB / 448.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.2477, allocations: 170.3 kB / 448.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.248, allocations: 397.8 kB / 449 MB, free: 268 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.248, allocations: 29.7 kB / 449 MB, free: 232 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.2482, allocations: 307.4 kB / 449.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.17e-05/0.2483, allocations: 110.5 kB / 449.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.2484, allocations: 98.14 kB / 449.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.2486, allocations: 354.8 kB / 449.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.2488, allocations: 121 kB / 450 MB, free: 15.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.2491, allocations: 290.1 kB / 450.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.2496, allocations: 489.3 kB / 450.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2496, allocations: 0 / 450.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006996/0.2504, allocations: 0.518 MB / 451.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.2504, allocations: 37.69 kB / 451.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.2504, allocations: 8 kB / 451.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2504, allocations: 8 kB / 451.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000371/0.2508, allocations: 103.8 kB / 451.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.2508, allocations: 11.98 kB / 451.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.2511, allocations: 23.98 kB / 451.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.2511, allocations: 40.11 kB / 451.5 MB, free: 13.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002434/0.2514, allocations: 247.3 kB / 451.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.61e-05/0.2514, allocations: 47.38 kB / 451.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000666/0.2521, allocations: 455.7 kB / 452.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2521, allocations: 4 kB / 452.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2521, allocations: 0 / 452.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2521, allocations: 0 / 452.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.2533, allocations: 0.9767 MB / 453.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2533, allocations: 0 / 453.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003046/0.2536, allocations: 59.91 kB / 453.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2537, allocations: 4 kB / 453.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.2537, allocations: 15.98 kB / 453.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2537, allocations: 0 / 453.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2537, allocations: 4 kB / 453.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008862/0.2546, allocations: 0.7131 MB / 454 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.2547, allocations: 140.5 kB / 454.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.2548, allocations: 8 kB / 454.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.255, allocations: 15.98 kB / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.2551, allocations: 19.97 kB / 454.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.2551, allocations: 36.03 kB / 454.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.2554, allocations: 279.1 kB / 454.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2554, allocations: 0 / 454.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004153/0.2558, allocations: 104 kB / 454.6 MB, free: 10.3 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001146/0.257, allocations: 1.274 MB / 455.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005476/0.2575, allocations: 402.6 kB / 456.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.2576, allocations: 1.438 kB / 456.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.2578, allocations: 267.2 kB / 456.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.2584, allocations: 98.03 kB / 456.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004851/0.2633, allocations: 4.339 MB / 461 MB, free: 3.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.2637, allocations: 0.8859 MB / 461.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002934/0.264, allocations: 92.42 kB / 461.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.2643, allocations: 171.4 kB / 462.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2643, allocations: 0 / 462.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0351/0.2994, allocations: 8.111 MB / 470.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.2996, allocations: 208.5 kB / 470.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.185, allocations: 0 / 470.4 MB, free: 10.11 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)