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.001275/0.001275, allocations: 109.1 kB / 17.06 MB, free: 6 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.001457/0.001457, allocations: 200 kB / 18.01 MB, free: 5.074 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.423/1.423, allocations: 222.9 MB / 241.7 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.1721/0.1721, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 63.89 kB / 458.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4791/0.4806, allocations: 58.05 MB / 0.5041 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006693/0.4874, allocations: 4.061 MB / 0.5081 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.4896, allocations: 0.9146 MB / 0.509 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.49, allocations: 11.78 kB / 0.509 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002852/0.4903, allocations: 48.94 kB / 0.509 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007612/0.4911, allocations: 178.4 kB / 0.5092 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000366/0.4915, allocations: 96.83 kB / 0.5093 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000608/0.4921, allocations: 401.5 kB / 0.5097 GB, free: 4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.4924, allocations: 120.4 kB / 0.5098 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003603/0.4928, allocations: 181.7 kB / 0.51 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004342/0.4933, allocations: 186.1 kB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.91e-05/0.4933, allocations: 19.22 kB / 0.5102 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.117e-05/0.4934, allocations: 18.84 kB / 0.5102 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.4936, allocations: 97.39 kB / 0.5103 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.4937, allocations: 139.8 kB / 0.5104 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004158/0.4942, allocations: 292.7 kB / 0.5107 GB, free: 3.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4942, allocations: 5 kB / 0.5107 GB, free: 3.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4942, allocations: 0 / 0.5107 GB, free: 3.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.4942, allocations: 0 / 0.5107 GB, free: 3.555 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.001065/0.4953, allocations: 0.5914 MB / 0.5113 GB, free: 3.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4953, allocations: 8.969 kB / 0.5113 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.085e-05/0.4954, allocations: 31.38 kB / 0.5113 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005385/0.496, allocations: 347.3 kB / 0.5116 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.496, allocations: 21.11 kB / 0.5117 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.4961, allocations: 18.47 kB / 0.5117 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004727/0.4965, allocations: 295.7 kB / 0.512 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.4966, allocations: 0 / 0.512 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.4966, allocations: 7.062 kB / 0.512 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.4966, allocations: 5.375 kB / 0.512 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.497, allocations: 182.3 kB / 0.5121 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.4984, allocations: 1.231 MB / 0.5133 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.4987, allocations: 105.6 kB / 0.5134 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.532e-05/0.4988, allocations: 51.59 kB / 0.5135 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.4989, allocations: 1.156 kB / 0.5135 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.4989, allocations: 32.78 kB / 0.5135 GB, free: 1.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.4989, allocations: 0 / 0.5135 GB, free: 1.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008556/0.4998, allocations: 484.8 kB / 0.514 GB, free: 0.957 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.4998, allocations: 88.34 kB / 0.5141 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.5001, allocations: 248.6 kB / 0.5143 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.5001, allocations: 29.7 kB / 0.5143 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.5002, allocations: 199.1 kB / 0.5145 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.5003, allocations: 35.39 kB / 0.5146 GB, free: 492 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/0.5003, allocations: 44.69 kB / 0.5146 GB, free: 460 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.5004, allocations: 343.5 kB / 0.5149 GB, free: 120 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.213e-05/0.5005, allocations: 40.75 kB / 0.515 GB, free: 104 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.5007, allocations: 128.6 kB / 0.5151 GB, free: 15.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.501, allocations: 194.4 kB / 0.5153 GB, free: 15.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.501, allocations: 1.031 kB / 0.5153 GB, free: 15.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003597/0.5013, allocations: 204.5 kB / 0.5155 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.5014, allocations: 7.703 kB / 0.5155 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5014, allocations: 2.812 kB / 0.5155 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.5014, allocations: 5.922 kB / 0.5155 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.5016, allocations: 44.45 kB / 0.5155 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.5016, allocations: 8.797 kB / 0.5155 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.5018, allocations: 17.11 kB / 0.5156 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.5018, allocations: 9.234 kB / 0.5156 GB, free: 15.66 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.0001694/0.502, allocations: 157.6 kB / 0.5157 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.829e-05/0.502, allocations: 22.02 kB / 0.5157 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002923/0.5023, allocations: 130.7 kB / 0.5159 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.5023, allocations: 1.844 kB / 0.5159 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5023, allocations: 0.7031 kB / 0.5159 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5024, allocations: 5.359 kB / 0.5159 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.503, allocations: 481.5 kB / 0.5163 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.503, allocations: 1.625 kB / 0.5163 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.5032, allocations: 24.08 kB / 0.5163 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.5032, allocations: 1.969 kB / 0.5164 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.5032, allocations: 10.23 kB / 0.5164 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.5032, allocations: 1.594 kB / 0.5164 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5032, allocations: 1.594 kB / 0.5164 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/0.5036, allocations: 283.1 kB / 0.5166 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5037, allocations: 99.89 kB / 0.5167 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/0.5038, allocations: 10.03 kB / 0.5167 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.788e-05/0.5039, allocations: 2.094 kB / 0.5167 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.5039, allocations: 11.02 kB / 0.5168 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.504, allocations: 6.531 kB / 0.5168 GB, free: 14.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001868/0.5042, allocations: 174 kB / 0.5169 GB, free: 14.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5042, allocations: 4.062 kB / 0.5169 GB, free: 14.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.5045, allocations: 44.06 kB / 0.517 GB, free: 14.59 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.0001383/0.5046, allocations: 94.84 kB / 0.5171 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.5049, allocations: 111.3 kB / 0.5172 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5049, allocations: 0 / 0.5172 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.7e-05/0.505, allocations: 51.73 kB / 0.5172 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.5055, allocations: 57.58 kB / 0.5173 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.5069, allocations: 0.5422 MB / 0.5178 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.5073, allocations: 0.7711 MB / 0.5186 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.5075, allocations: 29.11 kB / 0.5186 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.881e-05/0.5075, allocations: 20.94 kB / 0.5186 GB, free: 13.36 MB / 398.1 MB Notification: Performance of SimCode: time 2.014e-06/0.5075, allocations: 0 / 0.5186 GB, free: 13.36 MB / 398.1 MB Notification: Performance of Templates: time 0.006888/0.5144, allocations: 2.043 MB / 0.5206 GB, free: 13.16 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/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