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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001382/0.001381, allocations: 174.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007425/0.0007425, allocations: 78.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1665/0.1665, allocations: 37.97 MB / 353.5 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.616e-05, allocations: 4 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1165, allocations: 56.32 MB / 474.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.4775, allocations: 94.76 MB / 0.5555 GB, free: 7.891 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4778, allocations: 87.58 kB / 0.5556 GB, free: 7.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0162/0.494, allocations: 6.628 MB / 0.562 GB, free: 2.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.494, allocations: 0 / 0.562 GB, free: 2.164 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.4941, allocations: 7.938 kB / 0.562 GB, free: 2.156 MB / 362.7 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.0005552/0.4946, allocations: 0.528 MB / 0.5626 GB, free: 1.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.4947, allocations: 12.03 kB / 0.5626 GB, free: 1.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.818e-05/0.4947, allocations: 35.92 kB / 0.5626 GB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001512/0.4962, allocations: 0.765 MB / 0.5634 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.4963, allocations: 15.38 kB / 0.5634 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.4963, allocations: 22.38 kB / 0.5634 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.4967, allocations: 287.2 kB / 0.5637 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.4967, allocations: 4 kB / 0.5637 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.4967, allocations: 10.31 kB / 0.5637 GB, free: 0.582 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.4967, allocations: 4 kB / 0.5637 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.497, allocations: 180.5 kB / 0.5639 GB, free: 464 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.4981, allocations: 1.236 MB / 0.5651 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.4984, allocations: 107.5 kB / 0.5652 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.793e-05/0.4985, allocations: 48.52 kB / 0.5652 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.4985, allocations: 3.875 kB / 0.5652 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.4986, allocations: 30.56 kB / 0.5652 GB, free: 15.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.4986, allocations: 0 / 0.5652 GB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007291/0.4993, allocations: 459.1 kB / 0.5657 GB, free: 14.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.4994, allocations: 85.05 kB / 0.5658 GB, free: 14.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.4996, allocations: 212.2 kB / 0.566 GB, free: 14.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.4996, allocations: 32.89 kB / 0.566 GB, free: 14.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.765e-05/0.4997, allocations: 194.4 kB / 0.5662 GB, free: 14.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.4998, allocations: 46.34 kB / 0.5662 GB, free: 14.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.697e-06/0.4998, allocations: 7.625 kB / 0.5662 GB, free: 14.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4999, allocations: 337.2 kB / 0.5666 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.181e-05/0.5, allocations: 30.19 kB / 0.5666 GB, free: 13.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.5001, allocations: 127.6 kB / 0.5667 GB, free: 13.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.356e-05/0.5002, allocations: 58.09 kB / 0.5668 GB, free: 13.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.5002, allocations: 4 kB / 0.5668 GB, free: 13.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000291/0.5005, allocations: 209 kB / 0.567 GB, free: 13.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.5005, allocations: 8 kB / 0.567 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.5006, allocations: 4 kB / 0.567 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.5006, allocations: 4 kB / 0.567 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.5007, allocations: 43.05 kB / 0.567 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.5008, allocations: 8 kB / 0.567 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.5009, allocations: 10.86 kB / 0.567 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.5009, allocations: 8.344 kB / 0.567 GB, free: 13.28 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.484e-05/0.501, allocations: 126.8 kB / 0.5672 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.501, allocations: 19.72 kB / 0.5672 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.5013, allocations: 134.8 kB / 0.5673 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.5013, allocations: 4 kB / 0.5673 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5013, allocations: 0 / 0.5673 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.5013, allocations: 0 / 0.5673 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.5018, allocations: 482.7 kB / 0.5678 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5018, allocations: 0 / 0.5678 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.502, allocations: 27.92 kB / 0.5678 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.502, allocations: 0 / 0.5678 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.502, allocations: 4 kB / 0.5678 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.502, allocations: 0 / 0.5678 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.502, allocations: 0 / 0.5678 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.5023, allocations: 303.3 kB / 0.5681 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.5024, allocations: 96.86 kB / 0.5682 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.5024, allocations: 7.078 kB / 0.5682 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.706e-05/0.5025, allocations: 4 kB / 0.5682 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.5026, allocations: 7.984 kB / 0.5682 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.5026, allocations: 3.375 kB / 0.5682 GB, free: 12.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001477/0.5027, allocations: 172 kB / 0.5684 GB, free: 11.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5028, allocations: 4 kB / 0.5684 GB, free: 11.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.5031, allocations: 51.42 kB / 0.5684 GB, free: 11.91 MB / 378.7 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 () * 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 (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.000123/0.5032, allocations: 102.8 kB / 0.5685 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.5034, allocations: 105.5 kB / 0.5686 GB, free: 11.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.5034, allocations: 3.938 kB / 0.5686 GB, free: 11.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.915e-05/0.5035, allocations: 50.8 kB / 0.5687 GB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.5038, allocations: 62.69 kB / 0.5687 GB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006275/0.5045, allocations: 363 kB / 0.5691 GB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.5048, allocations: 0.7784 MB / 0.5698 GB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000123/0.505, allocations: 34.06 kB / 0.5699 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.505, allocations: 19.44 kB / 0.5699 GB, free: 10.43 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.505, allocations: 4 kB / 0.5699 GB, free: 10.43 MB / 378.7 MB Notification: Performance of Templates: time 0.004636/0.5097, allocations: 1.845 MB / 0.5717 GB, free: 8.598 MB / 378.7 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches