Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 110.1 kB / 17.28 MB, free: 6.219 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.00193/0.00193, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.646/2.646, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4129/0.4129, allocations: 38.04 MB / 330.1 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002494/0.002494, allocations: 69.14 kB / 398.9 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2972, allocations: 58.06 MB / 457 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.01274/0.31, allocations: 4.984 MB / 462 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004087/0.3141, allocations: 1.122 MB / 463.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007539/0.3149, allocations: 31.81 kB / 463.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004359/0.3154, allocations: 39.69 kB / 463.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.3167, allocations: 215.1 kB / 463.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.3172, allocations: 91.84 kB / 463.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.3182, allocations: 0.4945 MB / 464 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000469/0.3187, allocations: 143.9 kB / 464.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006911/0.3194, allocations: 223 kB / 464.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008529/0.3203, allocations: 291 kB / 464.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.975e-05/0.3204, allocations: 24 kB / 464.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.3206, allocations: 24 kB / 464.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.3209, allocations: 151.6 kB / 464.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004294/0.3214, allocations: 175.1 kB / 465 MB, free: 444 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000592/0.322, allocations: 279.4 kB / 465.3 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.322, allocations: 4 kB / 465.3 MB, free: 160 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3221, allocations: 0 / 465.3 MB, free: 160 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.3221, allocations: 3.938 kB / 465.3 MB, free: 156 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002347/0.3245, allocations: 0.6633 MB / 465.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.407e-05/0.3246, allocations: 11.89 kB / 465.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.3247, allocations: 44.47 kB / 466 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.3258, allocations: 355.8 kB / 466.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/0.3259, allocations: 28.62 kB / 466.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.326, allocations: 24 kB / 466.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.3271, allocations: 348.8 kB / 466.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.3271, allocations: 7.938 kB / 466.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.314e-05/0.3272, allocations: 8 kB / 466.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002195/0.3274, allocations: 28.53 kB / 466.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007974/0.3283, allocations: 238 kB / 467 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003447/0.3317, allocations: 1.37 MB / 468.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006702/0.3324, allocations: 173.1 kB / 468.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000412/0.3329, allocations: 97.73 kB / 468.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.863e-05/0.3329, allocations: 11.91 kB / 468.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/0.333, allocations: 38.56 kB / 468.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 4.519e-06/0.333, allocations: 4 kB / 468.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.002686/0.3357, allocations: 0.7549 MB / 469.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.3359, allocations: 81.11 kB / 469.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006131/0.3365, allocations: 300.4 kB / 469.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.3366, allocations: 25.83 kB / 469.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.3369, allocations: 223.5 kB / 470.1 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.078e-05/0.337, allocations: 47.36 kB / 470.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.3372, allocations: 57.59 kB / 470.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.3374, allocations: 334.8 kB / 470.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.3377, allocations: 67.95 kB / 470.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.338, allocations: 164.8 kB / 470.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006715/0.3387, allocations: 260 kB / 471 MB, free: 9.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.3388, allocations: 0 / 471 MB, free: 9.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001115/0.3399, allocations: 318 kB / 471.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.3399, allocations: 8 kB / 471.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.34, allocations: 8 kB / 471.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003925/0.3404, allocations: 52.81 kB / 471.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003954/0.3408, allocations: 43.92 kB / 471.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002772/0.3436, allocations: 1.605 MB / 473 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.344, allocations: 19.97 kB / 473 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.3441, allocations: 19.92 kB / 473 MB, free: 7.766 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003797/0.3444, allocations: 169.7 kB / 473.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.3446, allocations: 23.72 kB / 473.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008556/0.3455, allocations: 240.2 kB / 473.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3455, allocations: 4 kB / 473.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3455, allocations: 7.938 kB / 473.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.3455, allocations: 3.984 kB / 473.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.3474, allocations: 0.6326 MB / 474.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3474, allocations: 0 / 474.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.3477, allocations: 31.92 kB / 474.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004239/0.3481, allocations: 52.8 kB / 474.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.3482, allocations: 16.02 kB / 474.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/0.367, allocations: 1.605 MB / 475.8 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3671, allocations: 0 / 475.8 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.3683, allocations: 417.5 kB / 476.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.3685, allocations: 104.8 kB / 476.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/0.3686, allocations: 8 kB / 476.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.3689, allocations: 0 / 476.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.582e-05/0.369, allocations: 15.98 kB / 476.3 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.369, allocations: 7.984 kB / 476.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004434/0.3695, allocations: 207.1 kB / 476.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3695, allocations: 0 / 476.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008561/0.3704, allocations: 72 kB / 476.6 MB, free: 3.906 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002024/0.3706, allocations: 103.2 kB / 476.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000972/0.3716, allocations: 318.2 kB / 477 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3716, allocations: 0 / 477 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005977/0.3722, allocations: 202.6 kB / 477.2 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009558/0.3732, allocations: 74.08 kB / 477.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.3759, allocations: 0.8866 MB / 478.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007134/0.3766, allocations: 0.8104 MB / 479 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3767, allocations: 23.44 kB / 479 MB, free: 1.414 MB / 350.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3768, allocations: 0 / 479 MB, free: 1.414 MB / 350.1 MB Notification: Performance of Templates: time 0.03152/0.4083, allocations: 4.86 MB / 483.9 MB, free: 12.56 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches