Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.AC3ph.Generation.PVsource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource") translateModel(PowerSystems.Examples.AC3ph.Generation.PVsource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001556/0.001556, allocations: 191 kB / 18 MB, free: 5.207 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.493/1.493, 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.1755/0.1755, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 59.89 kB / 458.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3541, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.005374/0.3595, allocations: 4.584 MB / 0.5086 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.3615, allocations: 1.313 MB / 0.5099 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.3617, allocations: 21.31 kB / 0.5099 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.3628, allocations: 397.2 kB / 0.5103 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000564/0.3634, allocations: 245.9 kB / 0.5105 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.3639, allocations: 176 kB / 0.5107 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005881/0.3645, allocations: 0.5572 MB / 0.5112 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004577/0.365, allocations: 294.1 kB / 0.5115 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003594/0.3654, allocations: 257.4 kB / 0.5117 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004472/0.3658, allocations: 278.6 kB / 0.512 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.636e-05/0.3659, allocations: 30.19 kB / 0.512 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.3662, allocations: 127.7 kB / 0.5122 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.3664, allocations: 185.9 kB / 0.5123 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.3666, allocations: 220.5 kB / 0.5125 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006725/0.3673, allocations: 0.5109 MB / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3673, allocations: 0.5156 kB / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3673, allocations: 1.156 kB / 0.513 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.3674, allocations: 0 / 0.513 GB, free: 2.188 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001151/0.3685, allocations: 0.6957 MB / 0.5137 GB, free: 1.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3686, allocations: 17.39 kB / 0.5137 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006256/0.3692, allocations: 83.83 kB / 0.5138 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006651/0.3699, allocations: 422.4 kB / 0.5142 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.3699, allocations: 26.53 kB / 0.5143 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.3701, allocations: 46.59 kB / 0.5143 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007607/0.3708, allocations: 477.2 kB / 0.5148 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.3709, allocations: 9.75 kB / 0.5148 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.3709, allocations: 12.19 kB / 0.5148 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/0.371, allocations: 27.2 kB / 0.5148 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006433/0.3717, allocations: 335.4 kB / 0.5151 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002453/0.3741, allocations: 1.7 MB / 0.5168 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.3745, allocations: 151.1 kB / 0.5169 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.3747, allocations: 107 kB / 0.517 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.3748, allocations: 6 kB / 0.517 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.3748, allocations: 33.33 kB / 0.5171 GB, free: 15.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.843e-06/0.3748, allocations: 4 kB / 0.5171 GB, free: 15.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001807/0.3767, allocations: 0.8554 MB / 0.5179 GB, free: 14.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.3767, allocations: 79.36 kB / 0.518 GB, free: 14.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003513/0.3771, allocations: 310.8 kB / 0.5183 GB, free: 14.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.3771, allocations: 25.7 kB / 0.5183 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.3773, allocations: 253.8 kB / 0.5185 GB, free: 14.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.574e-05/0.3774, allocations: 61.14 kB / 0.5186 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.714e-05/0.3775, allocations: 57.67 kB / 0.5187 GB, free: 14.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3777, allocations: 344.5 kB / 0.519 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.3778, allocations: 97.22 kB / 0.5191 GB, free: 13.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.378, allocations: 198.4 kB / 0.5193 GB, free: 13.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.3785, allocations: 311.2 kB / 0.5196 GB, free: 13.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3785, allocations: 2.25 kB / 0.5196 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009256/0.3794, allocations: 455.4 kB / 0.52 GB, free: 13.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3795, allocations: 6.656 kB / 0.52 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006474/0.3801, allocations: 290.7 kB / 0.5203 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005498/0.3807, allocations: 130.8 kB / 0.5204 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.381, allocations: 60.61 kB / 0.5205 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/0.3841, allocations: 2.375 MB / 0.5228 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.3844, allocations: 17.06 kB / 0.5228 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/0.3844, allocations: 17.78 kB / 0.5228 GB, free: 11.33 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003255/0.3848, allocations: 184 kB / 0.523 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.113e-05/0.3849, allocations: 32.69 kB / 0.523 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000583/0.3854, allocations: 253.3 kB / 0.5233 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3855, allocations: 2.719 kB / 0.5233 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3855, allocations: 3.938 kB / 0.5233 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3855, allocations: 2.781 kB / 0.5233 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.3869, allocations: 0.7159 MB / 0.524 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.3869, allocations: 2.172 kB / 0.524 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.3872, allocations: 39.77 kB / 0.524 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001305/0.3873, allocations: 28.42 kB / 0.524 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.3874, allocations: 7.453 kB / 0.524 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/0.389, allocations: 1.592 MB / 0.5256 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.389, allocations: 1.375 kB / 0.5256 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006071/0.3896, allocations: 420.7 kB / 0.526 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.413e-05/0.3897, allocations: 107.5 kB / 0.5261 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.3898, allocations: 12.16 kB / 0.5261 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.3899, allocations: 5.5 kB / 0.5261 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.39, allocations: 15.06 kB / 0.5261 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.39, allocations: 3.875 kB / 0.5261 GB, free: 8.645 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.3903, allocations: 215.8 kB / 0.5263 GB, free: 8.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.3903, allocations: 5.156 kB / 0.5263 GB, free: 8.523 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005343/0.3908, allocations: 87.06 kB / 0.5264 GB, free: 8.516 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001414/0.391, allocations: 108.1 kB / 0.5265 GB, free: 8.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007817/0.3917, allocations: 400.1 kB / 0.5269 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3918, allocations: 192 / 0.5269 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.3921, allocations: 232.7 kB / 0.5271 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.3927, allocations: 70.02 kB / 0.5272 GB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.3943, allocations: 0.8547 MB / 0.528 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.3949, allocations: 0.8404 MB / 0.5289 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001936/0.3951, allocations: 64.09 kB / 0.5289 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.839e-05/0.3952, allocations: 24.62 kB / 0.5289 GB, free: 6.746 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3952, allocations: 3.938 kB / 0.529 GB, free: 6.742 MB / 398.1 MB Notification: Performance of Templates: time 0.009802/0.405, allocations: 4.025 MB / 0.5329 GB, free: 5.609 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches