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.001076/0.001076, allocations: 91.06 kB / 16.65 MB, free: 6.348 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.001313/0.001313, allocations: 180.3 kB / 17.56 MB, free: 5.949 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.331/1.331, allocations: 223.2 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1733/0.1733, allocations: 38.09 MB / 330.8 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002973, allocations: 8 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.0994, allocations: 59.17 MB / 459.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004645/0.1041, allocations: 4.342 MB / 464.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.1056, allocations: 1.075 MB / 465.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.1058, allocations: 19.88 kB / 465.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.106, allocations: 35.7 kB / 465.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004574/0.1065, allocations: 171.2 kB / 465.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.1067, allocations: 75.92 kB / 465.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005006/0.1072, allocations: 0.5217 MB / 466.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.1074, allocations: 105.7 kB / 466.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.1077, allocations: 151.2 kB / 466.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.108, allocations: 175.3 kB / 466.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.108, allocations: 8 kB / 466.6 MB, free: 400 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.704e-05/0.1081, allocations: 12 kB / 466.6 MB, free: 388 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.1082, allocations: 79.7 kB / 466.6 MB, free: 308 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.1083, allocations: 156.9 kB / 466.8 MB, free: 144 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.1086, allocations: 274.9 kB / 467.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1086, allocations: 0 / 467.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1086, allocations: 4 kB / 467.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1086, allocations: 0 / 467.1 MB, free: 15.87 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008383/0.1095, allocations: 0.5465 MB / 467.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1095, allocations: 8.031 kB / 467.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.335e-05/0.1096, allocations: 32.56 kB / 467.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.11, allocations: 330.9 kB / 468 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.11, allocations: 24.56 kB / 468 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.1101, allocations: 16 kB / 468 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/0.1105, allocations: 294.8 kB / 468.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1105, allocations: 0 / 468.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.1106, allocations: 8 kB / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1106, allocations: 4 kB / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.1109, allocations: 184.9 kB / 468.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.1122, allocations: 1.232 MB / 469.7 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.1125, allocations: 113.2 kB / 469.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.15e-05/0.1126, allocations: 41.77 kB / 469.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.1126, allocations: 3.984 kB / 469.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.1126, allocations: 34.56 kB / 469.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.1126, allocations: 0 / 469.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007657/0.1134, allocations: 492.4 kB / 470.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.1135, allocations: 81.09 kB / 470.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.1137, allocations: 250.7 kB / 470.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.1137, allocations: 29.7 kB / 470.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1138, allocations: 191.6 kB / 470.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.1139, allocations: 35.45 kB / 471 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.761e-05/0.1139, allocations: 29.7 kB / 471 MB, free: 11.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.114, allocations: 338.8 kB / 471.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.16e-05/0.1141, allocations: 35.98 kB / 471.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.1142, allocations: 124.9 kB / 471.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.1145, allocations: 193.4 kB / 471.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1145, allocations: 0 / 471.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002878/0.1148, allocations: 212.9 kB / 471.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1148, allocations: 8 kB / 471.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1148, allocations: 4 kB / 471.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1148, allocations: 4 kB / 471.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.115, allocations: 48.34 kB / 472 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.115, allocations: 11.94 kB / 472 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.1151, allocations: 11.94 kB / 472 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.1152, allocations: 12 kB / 472 MB, free: 10.49 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.0001277/0.1153, allocations: 157.7 kB / 472.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.1153, allocations: 23.7 kB / 472.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.1156, allocations: 127.4 kB / 472.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1156, allocations: 4 kB / 472.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1156, allocations: 0 / 472.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1156, allocations: 7.938 kB / 472.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/0.1161, allocations: 483.2 kB / 472.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1161, allocations: 0 / 472.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.1163, allocations: 19.94 kB / 472.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.1163, allocations: 7.984 kB / 472.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.1163, allocations: 7.938 kB / 472.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1163, allocations: 0 / 472.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1163, allocations: 4 kB / 472.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.1166, allocations: 272.9 kB / 473.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.443e-05/0.1167, allocations: 92.95 kB / 473.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.1167, allocations: 7.938 kB / 473.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.1168, allocations: 3.984 kB / 473.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.677e-05/0.1169, allocations: 11.94 kB / 473.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.1169, allocations: 12.06 kB / 473.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.117, allocations: 174 kB / 473.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.294e-06/0.117, allocations: 0 / 473.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.1174, allocations: 47.94 kB / 473.4 MB, free: 8.945 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.459e-05/0.1175, allocations: 99.25 kB / 473.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002027/0.1177, allocations: 111.5 kB / 473.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1177, allocations: 4 kB / 473.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.485e-05/0.1178, allocations: 48.2 kB / 473.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.1183, allocations: 54.81 kB / 473.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008514/0.1191, allocations: 0.6842 MB / 474.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.1194, allocations: 0.7755 MB / 475.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.1196, allocations: 34.27 kB / 475.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.1196, allocations: 23.44 kB / 475.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1196, allocations: 3.938 kB / 475.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of Templates: time 0.004746/0.1244, allocations: 1.891 MB / 477.1 MB, free: 5.176 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