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.001389/0.001389, allocations: 111.8 kB / 17.74 MB, free: 5.34 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.00144/0.00144, allocations: 193.6 kB / 18.68 MB, free: 4.41 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1826/0.1826, allocations: 38.04 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 63.91 kB / 458.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3699, allocations: 58.05 MB / 0.5048 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005281/0.3752, allocations: 4.06 MB / 0.5087 GB, free: 4.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3767, allocations: 0.9177 MB / 0.5096 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.3769, allocations: 10.81 kB / 0.5096 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.3771, allocations: 49.58 kB / 0.5097 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.3777, allocations: 177.1 kB / 0.5099 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.3779, allocations: 92.83 kB / 0.5099 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004678/0.3784, allocations: 402.2 kB / 0.5103 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.3786, allocations: 125 kB / 0.5104 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.3789, allocations: 185.3 kB / 0.5106 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.3793, allocations: 182.9 kB / 0.5108 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/0.3793, allocations: 18.94 kB / 0.5108 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.335e-05/0.3794, allocations: 19.59 kB / 0.5108 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3795, allocations: 91.81 kB / 0.5109 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.3797, allocations: 144.6 kB / 0.5111 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.3801, allocations: 288.6 kB / 0.5113 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3801, allocations: 2.047 kB / 0.5113 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3801, allocations: 0 / 0.5113 GB, free: 3.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3801, allocations: 4 kB / 0.5113 GB, free: 3.492 MB / 382.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.0009715/0.3811, allocations: 0.5876 MB / 0.5119 GB, free: 3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3811, allocations: 9.219 kB / 0.5119 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.456e-05/0.3812, allocations: 32.64 kB / 0.512 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004573/0.3817, allocations: 346.5 kB / 0.5123 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.3817, allocations: 17.53 kB / 0.5123 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.3818, allocations: 22.3 kB / 0.5123 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.3822, allocations: 290.1 kB / 0.5126 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3822, allocations: 1.562 kB / 0.5126 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.3822, allocations: 11.25 kB / 0.5126 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.3823, allocations: 6.125 kB / 0.5126 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.3826, allocations: 185.2 kB / 0.5128 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.3838, allocations: 1.223 MB / 0.514 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.3841, allocations: 113.3 kB / 0.5141 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.765e-05/0.3842, allocations: 47.67 kB / 0.5141 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.3842, allocations: 1.75 kB / 0.5141 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.3842, allocations: 32.84 kB / 0.5142 GB, free: 1.277 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.3842, allocations: 0 / 0.5142 GB, free: 1.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008305/0.3851, allocations: 492.7 kB / 0.5146 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.3851, allocations: 83.75 kB / 0.5147 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.3854, allocations: 244.9 kB / 0.515 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.3854, allocations: 31.2 kB / 0.515 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.3855, allocations: 197.1 kB / 0.5152 GB, free: 452 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.3855, allocations: 41.12 kB / 0.5152 GB, free: 420 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.3856, allocations: 43.36 kB / 0.5153 GB, free: 388 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.628e-05/0.3857, allocations: 344.4 kB / 0.5156 GB, free: 48 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.738e-05/0.3857, allocations: 35.17 kB / 0.5156 GB, free: 36 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.3859, allocations: 129.3 kB / 0.5157 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.3861, allocations: 191 kB / 0.5159 GB, free: 15.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3862, allocations: 1.188 kB / 0.5159 GB, free: 15.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003249/0.3865, allocations: 208.8 kB / 0.5161 GB, free: 15.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3865, allocations: 6.844 kB / 0.5161 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3865, allocations: 3.125 kB / 0.5161 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.3865, allocations: 5.688 kB / 0.5161 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.3867, allocations: 44.66 kB / 0.5162 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.3867, allocations: 12.45 kB / 0.5162 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.3869, allocations: 13.59 kB / 0.5162 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.3869, allocations: 8.641 kB / 0.5162 GB, free: 15.6 MB / 398.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.0001453/0.387, allocations: 153.9 kB / 0.5164 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.92e-05/0.3871, allocations: 27.61 kB / 0.5164 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.3873, allocations: 129.3 kB / 0.5165 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3874, allocations: 2.688 kB / 0.5165 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3874, allocations: 0 / 0.5165 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3874, allocations: 10.2 kB / 0.5165 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005992/0.388, allocations: 477.2 kB / 0.517 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.388, allocations: 4.844 kB / 0.517 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3881, allocations: 24.73 kB / 0.517 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.3881, allocations: 5.703 kB / 0.517 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.3882, allocations: 5.656 kB / 0.517 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.3882, allocations: 2.906 kB / 0.517 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3882, allocations: 0 / 0.517 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.3885, allocations: 283.1 kB / 0.5173 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.354e-05/0.3886, allocations: 96.48 kB / 0.5174 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.3886, allocations: 10.02 kB / 0.5174 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.799e-05/0.3888, allocations: 1.797 kB / 0.5174 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.3888, allocations: 11.22 kB / 0.5174 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.3888, allocations: 7.75 kB / 0.5174 GB, free: 14.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001962/0.389, allocations: 180.5 kB / 0.5176 GB, free: 14.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.389, allocations: 0 / 0.5176 GB, free: 14.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.3893, allocations: 44.62 kB / 0.5176 GB, free: 14.52 MB / 398.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 0.0001003/0.3894, allocations: 95.5 kB / 0.5177 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.3897, allocations: 111.9 kB / 0.5178 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3897, allocations: 4.312 kB / 0.5178 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.471e-05/0.3898, allocations: 46.03 kB / 0.5179 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.3903, allocations: 57.11 kB / 0.5179 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.3914, allocations: 0.5761 MB / 0.5185 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.3918, allocations: 0.771 MB / 0.5192 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.867e-05/0.3918, allocations: 22.66 kB / 0.5193 GB, free: 13.27 MB / 398.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3919, allocations: 0 / 0.5193 GB, free: 13.27 MB / 398.1 MB Notification: Performance of Templates: time 0.005834/0.3977, allocations: 2.966 MB / 0.5222 GB, free: 12.98 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/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