Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.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.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",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.001642/0.001642, allocations: 112 kB / 17.06 MB, free: 5.992 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.001911/0.001911, allocations: 194.9 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.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.03 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 59.91 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3524, allocations: 58.05 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.005693/0.3582, allocations: 4.568 MB / 0.5081 GB, free: 4.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.3603, allocations: 1.315 MB / 0.5094 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000293/0.3606, allocations: 17.53 kB / 0.5094 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.3617, allocations: 399.8 kB / 0.5098 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006401/0.3624, allocations: 249.6 kB / 0.51 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005169/0.3629, allocations: 171.5 kB / 0.5102 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008483/0.3638, allocations: 0.5616 MB / 0.5107 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005169/0.3643, allocations: 284.1 kB / 0.511 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000496/0.3648, allocations: 258.9 kB / 0.5112 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005701/0.3654, allocations: 285.2 kB / 0.5115 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.54e-05/0.3655, allocations: 29.22 kB / 0.5115 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.3658, allocations: 126.3 kB / 0.5117 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002787/0.3661, allocations: 198.2 kB / 0.5118 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.3664, allocations: 213.8 kB / 0.512 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009106/0.3673, allocations: 0.5173 MB / 0.5126 GB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3673, allocations: 0.9688 kB / 0.5126 GB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3673, allocations: 0 / 0.5126 GB, free: 1.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.3674, allocations: 0 / 0.5126 GB, free: 1.855 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.001672/0.3691, allocations: 0.713 MB / 0.5133 GB, free: 1.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3691, allocations: 14.14 kB / 0.5133 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.124e-05/0.3692, allocations: 72.22 kB / 0.5133 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006742/0.3699, allocations: 88.55 kB / 0.5134 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000745/0.3706, allocations: 418.5 kB / 0.5138 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.3707, allocations: 27.5 kB / 0.5138 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.3708, allocations: 46.31 kB / 0.5139 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008839/0.3717, allocations: 486.7 kB / 0.5144 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.3718, allocations: 1.312 kB / 0.5144 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.3718, allocations: 12.28 kB / 0.5144 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001353/0.3719, allocations: 28.28 kB / 0.5144 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000608/0.3726, allocations: 348.3 kB / 0.5147 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002352/0.3749, allocations: 1.729 MB / 0.5164 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.3753, allocations: 154.2 kB / 0.5166 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.3755, allocations: 118.8 kB / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.3755, allocations: 2.219 kB / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3756, allocations: 36.83 kB / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 2.184e-06/0.3756, allocations: 0 / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001759/0.3773, allocations: 0.897 MB / 0.5176 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.3774, allocations: 79.77 kB / 0.5177 GB, free: 14.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.3778, allocations: 314.4 kB / 0.518 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.3778, allocations: 27.56 kB / 0.518 GB, free: 14.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.378, allocations: 257.4 kB / 0.5182 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.893e-05/0.3781, allocations: 67.02 kB / 0.5183 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.3782, allocations: 61.69 kB / 0.5184 GB, free: 13.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3783, allocations: 351.4 kB / 0.5187 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.3785, allocations: 99.25 kB / 0.5188 GB, free: 13.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.3788, allocations: 194.5 kB / 0.519 GB, free: 13.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.3792, allocations: 332.1 kB / 0.5193 GB, free: 13.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3792, allocations: 1.188 kB / 0.5193 GB, free: 13.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009968/0.3802, allocations: 474.6 kB / 0.5197 GB, free: 12.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.3803, allocations: 7 kB / 0.5197 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006867/0.381, allocations: 320 kB / 0.5201 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005306/0.3815, allocations: 143.3 kB / 0.5202 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.3817, allocations: 52.14 kB / 0.5202 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003103/0.3848, allocations: 2.436 MB / 0.5226 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.3851, allocations: 16.78 kB / 0.5226 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.3852, allocations: 15.53 kB / 0.5227 GB, free: 10.84 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.0002593/0.3854, allocations: 188.1 kB / 0.5228 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.516e-05/0.3855, allocations: 33.52 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004542/0.3859, allocations: 266.6 kB / 0.5231 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.386, allocations: 2.188 kB / 0.5231 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.386, allocations: 1.125 kB / 0.5231 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.386, allocations: 1.359 kB / 0.5231 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.3873, allocations: 0.7423 MB / 0.5238 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3873, allocations: 1.891 kB / 0.5238 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002508/0.3875, allocations: 36.3 kB / 0.5239 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.3877, allocations: 37.38 kB / 0.5239 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.3877, allocations: 7.484 kB / 0.5239 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3877, allocations: 7.609 kB / 0.5239 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3877, allocations: 3.938 kB / 0.5239 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000617/0.3883, allocations: 440.4 kB / 0.5244 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.581e-05/0.3884, allocations: 103 kB / 0.5245 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.577e-05/0.3885, allocations: 12.78 kB / 0.5245 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3886, allocations: 9.812 kB / 0.5245 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.3887, allocations: 22.97 kB / 0.5245 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.3887, allocations: 4.922 kB / 0.5245 GB, free: 9.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.3889, allocations: 222.7 kB / 0.5247 GB, free: 9.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.389, allocations: 0 / 0.5247 GB, free: 9.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005189/0.3895, allocations: 83.03 kB / 0.5248 GB, free: 9.5 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009784/0.3905, allocations: 0.9776 MB / 0.5257 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008212/0.3913, allocations: 417.2 kB / 0.5261 GB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3913, allocations: 0 / 0.5261 GB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.3915, allocations: 183.1 kB / 0.5263 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/0.3921, allocations: 68.59 kB / 0.5264 GB, free: 8.312 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004925/0.397, allocations: 3.576 MB / 0.5299 GB, free: 5.961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005325/0.3976, allocations: 0.8408 MB / 0.5307 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.3978, allocations: 63.05 kB / 0.5308 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.398, allocations: 122.3 kB / 0.5309 GB, free: 5.145 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.398, allocations: 1.344 kB / 0.5309 GB, free: 5.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02857/0.4265, allocations: 7.36 MB / 0.5381 GB, free: 2.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.4, allocations: 14.06 kB / 0.5381 GB, free: 2.152 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_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_PQsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PQsource.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches