Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.00124/0.00124, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.394/1.394, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1734/0.1734, allocations: 38.04 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 66.48 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1129, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005311/0.1183, allocations: 4.06 MB / 460.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.1197, allocations: 0.9154 MB / 461.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.1199, allocations: 11.94 kB / 461.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.1201, allocations: 47.52 kB / 461.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004281/0.1205, allocations: 179 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.1207, allocations: 95.75 kB / 462.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003665/0.1211, allocations: 394.6 kB / 462.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.1213, allocations: 122.2 kB / 462.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.1215, allocations: 171.2 kB / 462.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002962/0.1219, allocations: 187.2 kB / 463 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.1219, allocations: 20 kB / 463 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.818e-05/0.122, allocations: 20 kB / 463.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.1221, allocations: 87.73 kB / 463.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.1222, allocations: 143.2 kB / 463.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.1225, allocations: 282.9 kB / 463.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1225, allocations: 4 kB / 463.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1225, allocations: 0 / 463.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1225, allocations: 0 / 463.6 MB, free: 1.324 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008884/0.1234, allocations: 0.5893 MB / 464.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1234, allocations: 8.031 kB / 464.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.931e-05/0.1235, allocations: 36.55 kB / 464.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.124, allocations: 327 kB / 464.5 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.124, allocations: 24.5 kB / 464.5 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.124, allocations: 16 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004131/0.1245, allocations: 294.8 kB / 464.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1245, allocations: 3.938 kB / 464.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.1245, allocations: 8 kB / 464.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1245, allocations: 4 kB / 464.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.1248, allocations: 181 kB / 465 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.1261, allocations: 1.228 MB / 466.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.1264, allocations: 121.2 kB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.48e-05/0.1265, allocations: 45.77 kB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1265, allocations: 7.922 kB / 466.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.1266, allocations: 30.56 kB / 466.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.1266, allocations: 3.938 kB / 466.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007934/0.1274, allocations: 488.5 kB / 467 MB, free: 13.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.1274, allocations: 81.11 kB / 467 MB, free: 13.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.1277, allocations: 246.7 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.1277, allocations: 37.58 kB / 467.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.1279, allocations: 195.6 kB / 467.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.1279, allocations: 39.45 kB / 467.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/0.128, allocations: 33.72 kB / 467.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1282, allocations: 346.8 kB / 467.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.011e-05/0.1283, allocations: 39.97 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.1284, allocations: 127.7 kB / 468.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.1286, allocations: 188.6 kB / 468.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1287, allocations: 0.75 kB / 468.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002897/0.129, allocations: 205 kB / 468.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.129, allocations: 8.094 kB / 468.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.129, allocations: 3.938 kB / 468.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.129, allocations: 8.438 kB / 468.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.1292, allocations: 43.91 kB / 468.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.1292, allocations: 11.94 kB / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.1293, allocations: 11.94 kB / 468.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.1293, allocations: 12 kB / 468.6 MB, free: 11.89 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001329/0.1295, allocations: 153.7 kB / 468.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-05/0.1295, allocations: 23.72 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.1298, allocations: 131.3 kB / 468.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1298, allocations: 0 / 468.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1298, allocations: 7.984 kB / 468.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.1298, allocations: 3.938 kB / 468.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/0.1304, allocations: 487.2 kB / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1304, allocations: 0 / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.1305, allocations: 20 kB / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1305, allocations: 0 / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.1305, allocations: 7.938 kB / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.1306, allocations: 3.984 kB / 469.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1306, allocations: 3.938 kB / 469.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.1309, allocations: 285 kB / 469.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.832e-05/0.131, allocations: 92.83 kB / 469.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.131, allocations: 11.94 kB / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.1311, allocations: 0 / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.1312, allocations: 7.984 kB / 469.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.1312, allocations: 16.06 kB / 469.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001353/0.1313, allocations: 174 kB / 470 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1313, allocations: 0 / 470 MB, free: 10.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1317, allocations: 44 kB / 470 MB, free: 10.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 9.121e-05/0.1318, allocations: 99.19 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000212/0.132, allocations: 119.9 kB / 470.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.132, allocations: 4 kB / 470.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.027e-05/0.1321, allocations: 43.92 kB / 470.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.1325, allocations: 59.22 kB / 470.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008324/0.1334, allocations: 0.5446 MB / 470.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.1337, allocations: 0.7714 MB / 471.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.1338, allocations: 34.27 kB / 471.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.1339, allocations: 27.44 kB / 471.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1339, allocations: 0 / 471.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of Templates: time 0.004998/0.1389, allocations: 1.995 MB / 473.7 MB, free: 6.602 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches