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.00132/0.00132, allocations: 113 kB / 16.51 MB, free: 6.707 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.001334/0.001334, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.379/1.379, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1835/0.1835, allocations: 38.04 MB / 329.3 MB, free: 9.07 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 59.86 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1344, allocations: 58.06 MB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.008214/0.1427, allocations: 4.979 MB / 461.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.1451, allocations: 1.13 MB / 462.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005631/0.1457, allocations: 27.88 kB / 462.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.1461, allocations: 47.62 kB / 462.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008389/0.147, allocations: 223.1 kB / 462.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.1474, allocations: 83.91 kB / 462.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009251/0.1483, allocations: 0.8026 MB / 463.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002742/0.1486, allocations: 126.9 kB / 463.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.1491, allocations: 187.1 kB / 463.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000589/0.1497, allocations: 291 kB / 464 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.15e-05/0.1498, allocations: 16 kB / 464 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.1499, allocations: 16 kB / 464.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.1501, allocations: 147.6 kB / 464.2 MB, free: 464 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.1503, allocations: 167.1 kB / 464.4 MB, free: 296 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.1507, allocations: 358.6 kB / 464.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1507, allocations: 0 / 464.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1508, allocations: 0 / 464.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.1508, allocations: 4 kB / 464.7 MB, free: 15.93 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001401/0.1522, allocations: 0.6556 MB / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1522, allocations: 12.03 kB / 465.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.1523, allocations: 36.47 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005702/0.1529, allocations: 355.8 kB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.153, allocations: 24.69 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.153, allocations: 31.98 kB / 465.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.1536, allocations: 352.7 kB / 466.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1536, allocations: 0 / 466.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.1536, allocations: 19.94 kB / 466.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000108/0.1537, allocations: 24.53 kB / 466.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004035/0.1541, allocations: 230 kB / 466.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.156, allocations: 1.382 MB / 467.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.1563, allocations: 161.1 kB / 468 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.1566, allocations: 105.7 kB / 468.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.1566, allocations: 0 / 468.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.1566, allocations: 38.5 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.1566, allocations: 3.938 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001408/0.158, allocations: 0.7549 MB / 468.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.1581, allocations: 89.09 kB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.1584, allocations: 300.3 kB / 469.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.1584, allocations: 29.7 kB / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1586, allocations: 219.5 kB / 469.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.1586, allocations: 47.47 kB / 469.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.1587, allocations: 57.61 kB / 469.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1589, allocations: 338.8 kB / 469.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.159, allocations: 63.95 kB / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.1592, allocations: 172.8 kB / 470.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.1595, allocations: 248.6 kB / 470.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1595, allocations: 4 kB / 470.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005144/0.16, allocations: 320.8 kB / 470.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1601, allocations: 4.438 kB / 470.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1601, allocations: 8 kB / 470.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002147/0.1603, allocations: 48.83 kB / 470.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1605, allocations: 55.84 kB / 470.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.1618, allocations: 1.495 MB / 472.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.162, allocations: 12 kB / 472.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.162, allocations: 11.94 kB / 472.4 MB, free: 7.684 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.000187/0.1622, allocations: 174.8 kB / 472.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-05/0.1623, allocations: 35.7 kB / 472.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004021/0.1627, allocations: 240.3 kB / 472.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1627, allocations: 4 kB / 472.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1627, allocations: 3.938 kB / 472.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1627, allocations: 0 / 472.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008801/0.1636, allocations: 0.6326 MB / 473.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1636, allocations: 8.016 kB / 473.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.1638, allocations: 23.94 kB / 473.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.164, allocations: 60.78 kB / 473.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.164, allocations: 4 kB / 473.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.1652, allocations: 1.487 MB / 475 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.1652, allocations: 3.984 kB / 475 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005177/0.1658, allocations: 414.8 kB / 475.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.906e-05/0.1658, allocations: 108.7 kB / 475.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.1659, allocations: 4 kB / 475.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.166, allocations: 7.984 kB / 475.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.1661, allocations: 23.86 kB / 475.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.1661, allocations: 4 kB / 475.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001919/0.1663, allocations: 207.1 kB / 475.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1663, allocations: 64 / 475.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003886/0.1667, allocations: 72 kB / 475.9 MB, free: 3.938 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.000121/0.1668, allocations: 99.23 kB / 475.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000572/0.1674, allocations: 310.5 kB / 476.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1674, allocations: 0 / 476.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003538/0.1678, allocations: 202.6 kB / 476.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.1683, allocations: 60.61 kB / 476.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.1696, allocations: 0.8604 MB / 477.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.17, allocations: 0.8145 MB / 478.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.1702, allocations: 42.94 kB / 478.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.606e-05/0.1703, allocations: 23.44 kB / 478.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1703, allocations: 0 / 478.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of Templates: time 0.006814/0.1771, allocations: 2.826 MB / 481.1 MB, free: 14.64 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins/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