Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 114.1 kB / 17.07 MB, free: 6.016 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.001214/0.001214, allocations: 191 kB / 18 MB, free: 5.098 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.492/1.492, 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.1783/0.1783, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4008, allocations: 58.06 MB / 0.5041 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006365/0.4072, allocations: 4.079 MB / 0.5081 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.4088, allocations: 0.8609 MB / 0.5089 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.409, allocations: 10.78 kB / 0.5089 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.4092, allocations: 41.03 kB / 0.509 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004415/0.4096, allocations: 170.6 kB / 0.5091 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.4099, allocations: 84.64 kB / 0.5092 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.4103, allocations: 402.8 kB / 0.5096 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.4105, allocations: 104.9 kB / 0.5097 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.4108, allocations: 179.4 kB / 0.5099 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.4111, allocations: 183.2 kB / 0.51 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-05/0.4112, allocations: 20.75 kB / 0.5101 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.698e-05/0.4113, allocations: 21.09 kB / 0.5101 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.4114, allocations: 87.48 kB / 0.5102 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.4116, allocations: 144.7 kB / 0.5103 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004863/0.4121, allocations: 289.7 kB / 0.5106 GB, free: 3.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.4121, allocations: 1.188 kB / 0.5106 GB, free: 3.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4121, allocations: 0 / 0.5106 GB, free: 3.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.4122, allocations: 0 / 0.5106 GB, free: 3.516 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.001048/0.4132, allocations: 0.5986 MB / 0.5112 GB, free: 3.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4133, allocations: 13.23 kB / 0.5112 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.4133, allocations: 40.33 kB / 0.5112 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.4138, allocations: 345.5 kB / 0.5116 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.4139, allocations: 19.14 kB / 0.5116 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.414, allocations: 39.62 kB / 0.5116 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/0.4144, allocations: 285.3 kB / 0.5119 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.4144, allocations: 5.656 kB / 0.5119 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/0.4145, allocations: 10.81 kB / 0.5119 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.4145, allocations: 5.344 kB / 0.5119 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.4148, allocations: 188.6 kB / 0.5121 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.4161, allocations: 1.281 MB / 0.5133 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.4163, allocations: 121.4 kB / 0.5134 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.621e-05/0.4164, allocations: 44.91 kB / 0.5135 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.4164, allocations: 2.406 kB / 0.5135 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.4165, allocations: 43.97 kB / 0.5135 GB, free: 1.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.4165, allocations: 0 / 0.5135 GB, free: 1.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008211/0.4173, allocations: 0.5355 MB / 0.5141 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.4173, allocations: 109 kB / 0.5142 GB, free: 0.625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.4176, allocations: 236.6 kB / 0.5144 GB, free: 500 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.4176, allocations: 25.7 kB / 0.5144 GB, free: 468 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.701e-05/0.4177, allocations: 207.7 kB / 0.5146 GB, free: 288 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.4177, allocations: 41.28 kB / 0.5147 GB, free: 256 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.365e-05/0.4178, allocations: 45.11 kB / 0.5147 GB, free: 224 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.4179, allocations: 338.3 kB / 0.515 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.428e-05/0.418, allocations: 38.12 kB / 0.5151 GB, free: 15.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.4181, allocations: 137.2 kB / 0.5152 GB, free: 15.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.4184, allocations: 190.2 kB / 0.5154 GB, free: 15.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4184, allocations: 1.156 kB / 0.5154 GB, free: 15.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004212/0.4188, allocations: 234.4 kB / 0.5156 GB, free: 15.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.4188, allocations: 6.312 kB / 0.5156 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.4188, allocations: 3.703 kB / 0.5156 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/0.419, allocations: 30.67 kB / 0.5156 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.4193, allocations: 64.34 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.4194, allocations: 5.062 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.4195, allocations: 8.312 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.4195, allocations: 9.953 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001518/0.4197, allocations: 150.2 kB / 0.5159 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.4197, allocations: 34.45 kB / 0.5159 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.42, allocations: 140.1 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.42, allocations: 6.109 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.42, allocations: 1.125 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.42, allocations: 2.062 kB / 0.516 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.4204, allocations: 284.4 kB / 0.5163 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4204, allocations: 0 / 0.5163 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.4206, allocations: 26.45 kB / 0.5163 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.4206, allocations: 2.875 kB / 0.5163 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.4207, allocations: 9.609 kB / 0.5163 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/0.4207, allocations: 10.83 kB / 0.5163 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4207, allocations: 1.25 kB / 0.5163 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004938/0.4212, allocations: 363.8 kB / 0.5167 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.594e-05/0.4213, allocations: 95.55 kB / 0.5168 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.4213, allocations: 7.516 kB / 0.5168 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.4215, allocations: 13.62 kB / 0.5168 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.464e-05/0.4215, allocations: 11.94 kB / 0.5168 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.4215, allocations: 4.625 kB / 0.5168 GB, free: 14.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00019/0.4217, allocations: 169.7 kB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4217, allocations: 96 / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003699/0.4221, allocations: 50.12 kB / 0.517 GB, free: 14.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0001263/0.4222, allocations: 102.9 kB / 0.5171 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003857/0.4226, allocations: 214.6 kB / 0.5173 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4226, allocations: 0 / 0.5173 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.951e-05/0.4227, allocations: 48.86 kB / 0.5174 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005106/0.4233, allocations: 58.17 kB / 0.5174 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.4243, allocations: 0.6022 MB / 0.518 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.4246, allocations: 0.7703 MB / 0.5188 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.4248, allocations: 29.66 kB / 0.5188 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.4248, allocations: 23.2 kB / 0.5188 GB, free: 13 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4248, allocations: 0 / 0.5188 GB, free: 13 MB / 398.1 MB Notification: Performance of Templates: time 0.005798/0.4306, allocations: 2.227 MB / 0.521 GB, free: 12.81 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches