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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",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.001189/0.001189, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.001429/0.001429, allocations: 200.1 kB / 18 MB, free: 5.168 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.422/1.422, 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.1868/0.1868, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 71.83 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3352, allocations: 58.06 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.005017/0.3402, allocations: 4.578 MB / 0.5081 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.3422, allocations: 1.327 MB / 0.5094 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.3423, allocations: 16.62 kB / 0.5094 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.3434, allocations: 392.5 kB / 0.5098 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004679/0.3439, allocations: 254.5 kB / 0.51 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.3443, allocations: 171.9 kB / 0.5102 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005519/0.3448, allocations: 0.5631 MB / 0.5107 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000416/0.3453, allocations: 282.4 kB / 0.511 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003116/0.3456, allocations: 257.3 kB / 0.5113 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004013/0.346, allocations: 282 kB / 0.5115 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.3461, allocations: 31.09 kB / 0.5116 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.3463, allocations: 126.8 kB / 0.5117 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001871/0.3465, allocations: 182.9 kB / 0.5119 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.3467, allocations: 221 kB / 0.5121 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000616/0.3473, allocations: 0.5158 MB / 0.5126 GB, free: 1.934 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3474, allocations: 1.156 kB / 0.5126 GB, free: 1.934 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3474, allocations: 0.5625 kB / 0.5126 GB, free: 1.934 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.3474, allocations: 0 / 0.5126 GB, free: 1.934 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.001074/0.3485, allocations: 0.7044 MB / 0.5133 GB, free: 1.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3485, allocations: 13.45 kB / 0.5133 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.816e-05/0.3486, allocations: 76.91 kB / 0.5133 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006081/0.3492, allocations: 88.16 kB / 0.5134 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006732/0.3499, allocations: 421.6 kB / 0.5138 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.3499, allocations: 23.73 kB / 0.5139 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3501, allocations: 54.05 kB / 0.5139 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007181/0.3508, allocations: 477.3 kB / 0.5144 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.3508, allocations: 0.7969 kB / 0.5144 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.3509, allocations: 15.66 kB / 0.5144 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.351, allocations: 25.22 kB / 0.5144 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005299/0.3515, allocations: 338.3 kB / 0.5147 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.3538, allocations: 1.708 MB / 0.5164 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.3541, allocations: 147.8 kB / 0.5165 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.3543, allocations: 110.6 kB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.3543, allocations: 1.594 kB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.3544, allocations: 37.3 kB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.3544, allocations: 0 / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.00184/0.3562, allocations: 0.8626 MB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.3563, allocations: 79.97 kB / 0.5176 GB, free: 14.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004481/0.3567, allocations: 310.5 kB / 0.5179 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.3568, allocations: 31.14 kB / 0.5179 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.357, allocations: 249.6 kB / 0.5182 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.459e-05/0.3571, allocations: 69.69 kB / 0.5182 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.3572, allocations: 65.81 kB / 0.5183 GB, free: 13.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3573, allocations: 348.2 kB / 0.5186 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.3575, allocations: 96.61 kB / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.3578, allocations: 190.7 kB / 0.5189 GB, free: 13.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.3582, allocations: 311.2 kB / 0.5192 GB, free: 13.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3582, allocations: 5.438 kB / 0.5192 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009565/0.3592, allocations: 456 kB / 0.5196 GB, free: 13.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3592, allocations: 11.81 kB / 0.5196 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006386/0.3599, allocations: 287.4 kB / 0.5199 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005406/0.3604, allocations: 129.4 kB / 0.52 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.3607, allocations: 57.23 kB / 0.5201 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002882/0.3635, allocations: 2.381 MB / 0.5224 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.3638, allocations: 24.12 kB / 0.5224 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.3638, allocations: 10.61 kB / 0.5225 GB, free: 10.98 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.0002546/0.3641, allocations: 187.6 kB / 0.5226 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.3641, allocations: 29.06 kB / 0.5227 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.3646, allocations: 249.1 kB / 0.5229 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3646, allocations: 7.391 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.3646, allocations: 0 / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3646, allocations: 6.125 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.366, allocations: 0.715 MB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.3661, allocations: 1.875 kB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.3663, allocations: 39.31 kB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.3664, allocations: 33.91 kB / 0.5237 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.3664, allocations: 7.156 kB / 0.5237 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/0.3682, allocations: 1.594 MB / 0.5252 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3683, allocations: 2.031 kB / 0.5252 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006252/0.3689, allocations: 426.2 kB / 0.5257 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.369, allocations: 107 kB / 0.5258 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.3691, allocations: 7.453 kB / 0.5258 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.3693, allocations: 6.938 kB / 0.5258 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.3693, allocations: 15.05 kB / 0.5258 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.3693, allocations: 8.688 kB / 0.5258 GB, free: 8.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002989/0.3696, allocations: 218.4 kB / 0.526 GB, free: 8.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.116e-06/0.3696, allocations: 0 / 0.526 GB, free: 8.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005872/0.3702, allocations: 92.34 kB / 0.5261 GB, free: 8.145 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.0009772/0.3712, allocations: 0.9615 MB / 0.527 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007479/0.372, allocations: 396.8 kB / 0.5274 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.372, allocations: 1.344 kB / 0.5274 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.3723, allocations: 230.6 kB / 0.5276 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005067/0.3729, allocations: 64.11 kB / 0.5277 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004924/0.3778, allocations: 3.504 MB / 0.5311 GB, free: 4.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.3784, allocations: 0.8473 MB / 0.5319 GB, free: 3.902 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.3786, allocations: 56.23 kB / 0.532 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.3788, allocations: 127.5 kB / 0.5321 GB, free: 3.801 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3788, allocations: 0 / 0.5321 GB, free: 3.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.411, allocations: 7.508 MB / 0.5394 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.87, allocations: 5.781 kB / 0.5394 GB, free: 0.7344 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches