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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001227/0.001227, allocations: 196 kB / 18.01 MB, free: 5.051 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.184/0.184, allocations: 38.04 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 59.91 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3331, allocations: 58.06 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005222/0.3384, allocations: 4.077 MB / 0.5076 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.34, allocations: 0.8501 MB / 0.5084 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003133/0.3403, allocations: 15.88 kB / 0.5085 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002445/0.3406, allocations: 44.62 kB / 0.5085 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006373/0.3413, allocations: 171.2 kB / 0.5087 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.3416, allocations: 84.33 kB / 0.5087 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005299/0.3421, allocations: 398.3 kB / 0.5091 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.3423, allocations: 111.9 kB / 0.5092 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.3427, allocations: 175.4 kB / 0.5094 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/0.3431, allocations: 185.2 kB / 0.5096 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.249e-05/0.3431, allocations: 24.28 kB / 0.5096 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.221e-05/0.3432, allocations: 21.38 kB / 0.5096 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.3434, allocations: 87.22 kB / 0.5097 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.3436, allocations: 144.3 kB / 0.5098 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.344, allocations: 281.4 kB / 0.5101 GB, free: 3.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.344, allocations: 0 / 0.5101 GB, free: 3.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.344, allocations: 2.016 kB / 0.5101 GB, free: 3.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.344, allocations: 0 / 0.5101 GB, free: 3.223 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.001026/0.3451, allocations: 0.6103 MB / 0.5107 GB, free: 2.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3451, allocations: 8.75 kB / 0.5107 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.941e-05/0.3452, allocations: 55.97 kB / 0.5108 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.003e-05/0.3452, allocations: 36.39 kB / 0.5108 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.3458, allocations: 341.6 kB / 0.5111 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.3458, allocations: 22.16 kB / 0.5112 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3459, allocations: 32.11 kB / 0.5112 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004261/0.3464, allocations: 297 kB / 0.5115 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3464, allocations: 0.7031 kB / 0.5115 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.3464, allocations: 11.72 kB / 0.5115 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3464, allocations: 4.656 kB / 0.5115 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003109/0.3467, allocations: 189 kB / 0.5117 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.3481, allocations: 1.28 MB / 0.5129 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.3484, allocations: 119.8 kB / 0.513 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.254e-05/0.3485, allocations: 46.08 kB / 0.5131 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.3485, allocations: 1.25 kB / 0.5131 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.3486, allocations: 37.66 kB / 0.5131 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.903e-06/0.3486, allocations: 4 kB / 0.5131 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008493/0.3494, allocations: 0.5382 MB / 0.5136 GB, free: 416 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.3495, allocations: 109.7 kB / 0.5137 GB, free: 284 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.3497, allocations: 244.3 kB / 0.514 GB, free: 136 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.3497, allocations: 25.7 kB / 0.514 GB, free: 104 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.3499, allocations: 199.7 kB / 0.5142 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.3499, allocations: 45.34 kB / 0.5142 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.548e-05/0.35, allocations: 43.84 kB / 0.5143 GB, free: 15.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3502, allocations: 339.8 kB / 0.5146 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.322e-05/0.3502, allocations: 38.33 kB / 0.5146 GB, free: 15.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.3504, allocations: 133.9 kB / 0.5148 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.3507, allocations: 189.5 kB / 0.5149 GB, free: 15.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3507, allocations: 1.094 kB / 0.5149 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004254/0.3511, allocations: 233.6 kB / 0.5152 GB, free: 15.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3511, allocations: 6.703 kB / 0.5152 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3511, allocations: 4.031 kB / 0.5152 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.3513, allocations: 34.92 kB / 0.5152 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.3516, allocations: 59.3 kB / 0.5153 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3516, allocations: 5.875 kB / 0.5153 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.3517, allocations: 12.53 kB / 0.5153 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.3518, allocations: 9.172 kB / 0.5153 GB, free: 15.06 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.0001658/0.3519, allocations: 153.1 kB / 0.5154 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/0.352, allocations: 26.58 kB / 0.5155 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002753/0.3523, allocations: 142.6 kB / 0.5156 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3523, allocations: 7.141 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3523, allocations: 1.188 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3523, allocations: 5.953 kB / 0.5156 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.3528, allocations: 284.1 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3528, allocations: 2.484 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.3529, allocations: 25.58 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.353, allocations: 1.906 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.353, allocations: 6.359 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.353, allocations: 9.25 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.353, allocations: 1.688 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/0.3534, allocations: 367.5 kB / 0.5163 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.427e-05/0.3535, allocations: 101 kB / 0.5164 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.3535, allocations: 1.406 kB / 0.5164 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.3537, allocations: 18.11 kB / 0.5164 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.3537, allocations: 8.047 kB / 0.5164 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.3537, allocations: 4.844 kB / 0.5164 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001637/0.3539, allocations: 171.3 kB / 0.5166 GB, free: 14.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3539, allocations: 0 / 0.5166 GB, free: 14.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.3543, allocations: 44.75 kB / 0.5166 GB, free: 14.06 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.0007063/0.355, allocations: 0.9067 MB / 0.5175 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003492/0.3554, allocations: 210.4 kB / 0.5177 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3554, allocations: 0.875 kB / 0.5177 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.997e-05/0.3555, allocations: 54.19 kB / 0.5178 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.356, allocations: 53.16 kB / 0.5178 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003424/0.3594, allocations: 2.625 MB / 0.5204 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.3599, allocations: 0.7692 MB / 0.5211 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.36, allocations: 31.12 kB / 0.5211 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3602, allocations: 89.17 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3602, allocations: 0 / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.3901, allocations: 4.881 MB / 0.526 GB, free: 9.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.78, allocations: 8.797 kB / 0.526 GB, free: 9.613 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/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