Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007454/0.0007455, allocations: 85.28 kB / 16.31 MB, free: 6.449 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.0008326/0.0008326, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.231/1.231, allocations: 223.3 MB / 241.2 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2799/0.2799, allocations: 38.07 MB / 330.4 MB, free: 14.16 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002714/0.0002715, allocations: 12 kB / 400.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2341, allocations: 59.16 MB / 459.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005228/0.2394, allocations: 5.814 MB / 465.1 MB, free: 26.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002391/0.2418, allocations: 1.595 MB / 466.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003231/0.2421, allocations: 40.97 kB / 466.7 MB, free: 25.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003727/0.2425, allocations: 129 kB / 466.8 MB, free: 25.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008996/0.2434, allocations: 410.3 kB / 467.2 MB, free: 24.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004385/0.2439, allocations: 187.3 kB / 467.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009846/0.2448, allocations: 0.9192 MB / 468.3 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003075/0.2452, allocations: 164.4 kB / 468.5 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004119/0.2456, allocations: 288.9 kB / 468.8 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005794/0.2462, allocations: 398.3 kB / 469.1 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.2462, allocations: 20.59 kB / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.677e-05/0.2463, allocations: 22.19 kB / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.2465, allocations: 185.1 kB / 469.4 MB, free: 24.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.2467, allocations: 123.5 kB / 469.5 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004225/0.2471, allocations: 425.3 kB / 469.9 MB, free: 23.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2471, allocations: 1.188 kB / 469.9 MB, free: 23.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2471, allocations: 0 / 469.9 MB, free: 23.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2471, allocations: 0 / 469.9 MB, free: 23.84 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001144/0.2483, allocations: 0.8 MB / 470.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2483, allocations: 9.531 kB / 470.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.665e-05/0.2484, allocations: 61.75 kB / 470.8 MB, free: 23.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.2491, allocations: 481.4 kB / 471.2 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.2491, allocations: 29.69 kB / 471.3 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.2492, allocations: 40.16 kB / 471.3 MB, free: 22.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007549/0.2499, allocations: 0.531 MB / 471.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.25, allocations: 0.9375 kB / 471.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.867e-05/0.25, allocations: 16.38 kB / 471.9 MB, free: 22.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.25, allocations: 24.89 kB / 471.9 MB, free: 22.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005929/0.2506, allocations: 387.4 kB / 472.3 MB, free: 22.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.2526, allocations: 1.942 MB / 474.2 MB, free: 21.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005105/0.2532, allocations: 325.9 kB / 474.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.2535, allocations: 184.7 kB / 474.7 MB, free: 20.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.2535, allocations: 8.312 kB / 474.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003427/0.2538, allocations: 275.4 kB / 475 MB, free: 20.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.703e-06/0.2538, allocations: 0 / 475 MB, free: 20.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001571/0.2554, allocations: 1.184 MB / 476.2 MB, free: 19.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.2555, allocations: 167.2 kB / 476.3 MB, free: 19.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.2559, allocations: 397 kB / 476.7 MB, free: 19.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.2559, allocations: 31.58 kB / 476.7 MB, free: 19.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.256, allocations: 290.9 kB / 477 MB, free: 19.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.2561, allocations: 126.1 kB / 477.2 MB, free: 19.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.2561, allocations: 10.59 kB / 477.2 MB, free: 19.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/0.2562, allocations: 355.4 kB / 477.5 MB, free: 18.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.2564, allocations: 119.3 kB / 477.6 MB, free: 18.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2566, allocations: 293.3 kB / 477.9 MB, free: 18.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.2568, allocations: 182.1 kB / 478.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2568, allocations: 1.562 kB / 478.1 MB, free: 18.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007291/0.2576, allocations: 0.511 MB / 478.6 MB, free: 18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.2576, allocations: 38.08 kB / 478.6 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.2577, allocations: 9.547 kB / 478.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.803e-05/0.2577, allocations: 8.688 kB / 478.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.2581, allocations: 106.3 kB / 478.8 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.899e-05/0.2581, allocations: 11.5 kB / 478.8 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.2584, allocations: 33.12 kB / 478.8 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.718e-05/0.2584, allocations: 38.94 kB / 478.8 MB, free: 17.89 MB / 350.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,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002456/0.2587, allocations: 247.7 kB / 479.1 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.2588, allocations: 46.16 kB / 479.1 MB, free: 17.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006833/0.2595, allocations: 453.5 kB / 479.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2595, allocations: 3.969 kB / 479.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2595, allocations: 1.438 kB / 479.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2595, allocations: 7.984 kB / 479.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.2605, allocations: 0.9666 MB / 480.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2605, allocations: 1.031 kB / 480.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.2608, allocations: 64.94 kB / 480.6 MB, free: 16.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.2608, allocations: 2.188 kB / 480.6 MB, free: 16.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.2609, allocations: 13.11 kB / 480.6 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2609, allocations: 2 kB / 480.6 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2609, allocations: 12.98 kB / 480.7 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007738/0.2617, allocations: 0.7013 MB / 481.4 MB, free: 16.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.2618, allocations: 138 kB / 481.5 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.2618, allocations: 13 kB / 481.5 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.262, allocations: 17.7 kB / 481.5 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.2621, allocations: 26.58 kB / 481.5 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.2622, allocations: 41.89 kB / 481.6 MB, free: 16.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.2624, allocations: 264.4 kB / 481.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2624, allocations: 1.062 kB / 481.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000415/0.2628, allocations: 102 kB / 481.9 MB, free: 15.85 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001087/0.2629, allocations: 109.6 kB / 482 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005094/0.2634, allocations: 401.5 kB / 482.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2634, allocations: 0 / 482.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.2637, allocations: 264.1 kB / 482.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.2643, allocations: 101.3 kB / 482.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.2656, allocations: 1.179 MB / 484 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.2658, allocations: 0.89 MB / 484.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002526/0.2661, allocations: 88.3 kB / 485 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.2662, allocations: 39.44 kB / 485 MB, free: 13.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2662, allocations: 3.938 kB / 485 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Templates: time 0.006014/0.2722, allocations: 3.775 MB / 488.8 MB, free: 9.762 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches