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.001241/0.001241, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001246/0.001247, allocations: 189.4 kB / 18 MB, free: 5.09 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.442/1.442, 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.1843/0.1843, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 63.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3142, allocations: 58.06 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.00493/0.3192, allocations: 4.558 MB / 0.5081 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.321, allocations: 1.307 MB / 0.5094 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.3212, allocations: 16.5 kB / 0.5094 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009821/0.3222, allocations: 400.8 kB / 0.5098 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004659/0.3227, allocations: 248.9 kB / 0.51 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.3231, allocations: 171.1 kB / 0.5102 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000525/0.3237, allocations: 0.5565 MB / 0.5107 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.3241, allocations: 288.6 kB / 0.511 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.3245, allocations: 254.5 kB / 0.5112 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004382/0.3249, allocations: 284.7 kB / 0.5115 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.256e-05/0.325, allocations: 30.09 kB / 0.5115 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002649/0.3252, allocations: 130.6 kB / 0.5116 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.3254, allocations: 188.7 kB / 0.5118 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.3256, allocations: 217.1 kB / 0.512 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006522/0.3263, allocations: 0.5145 MB / 0.5125 GB, free: 1.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3263, allocations: 1.281 kB / 0.5125 GB, free: 1.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3263, allocations: 0 / 0.5125 GB, free: 1.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.3263, allocations: 0 / 0.5125 GB, free: 1.938 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.001076/0.3274, allocations: 0.7131 MB / 0.5132 GB, free: 1.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3275, allocations: 12.7 kB / 0.5132 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.564e-05/0.3276, allocations: 74.22 kB / 0.5133 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005704/0.3281, allocations: 91.42 kB / 0.5134 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005769/0.3287, allocations: 415.6 kB / 0.5138 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.3288, allocations: 26.22 kB / 0.5138 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.3289, allocations: 50.77 kB / 0.5139 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007191/0.3296, allocations: 482.5 kB / 0.5143 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.3296, allocations: 1.734 kB / 0.5143 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.86e-05/0.3297, allocations: 19.41 kB / 0.5144 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/0.3298, allocations: 24 kB / 0.5144 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006163/0.3304, allocations: 355.8 kB / 0.5147 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.3333, allocations: 1.725 MB / 0.5164 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.3338, allocations: 148.3 kB / 0.5165 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003008/0.3341, allocations: 118.4 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.3341, allocations: 2.125 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/0.3342, allocations: 36.81 kB / 0.5167 GB, free: 15.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 4.198e-06/0.3342, allocations: 0 / 0.5167 GB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.002348/0.3365, allocations: 0.9 MB / 0.5176 GB, free: 14.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.3366, allocations: 79.23 kB / 0.5176 GB, free: 14.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/0.3371, allocations: 315.3 kB / 0.5179 GB, free: 14.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.3372, allocations: 34.88 kB / 0.518 GB, free: 14.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.3374, allocations: 253.9 kB / 0.5182 GB, free: 14.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.441e-05/0.3375, allocations: 62.36 kB / 0.5183 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3376, allocations: 61.91 kB / 0.5183 GB, free: 13.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3378, allocations: 352.2 kB / 0.5187 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.338, allocations: 97.84 kB / 0.5188 GB, free: 13.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.3382, allocations: 199.2 kB / 0.519 GB, free: 13.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004911/0.3387, allocations: 328 kB / 0.5193 GB, free: 13.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3388, allocations: 0 / 0.5193 GB, free: 13.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001091/0.3399, allocations: 480.4 kB / 0.5197 GB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.3399, allocations: 7.031 kB / 0.5197 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007684/0.3407, allocations: 322.5 kB / 0.52 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000513/0.3412, allocations: 134.1 kB / 0.5202 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.3414, allocations: 54.56 kB / 0.5202 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/0.3445, allocations: 2.43 MB / 0.5226 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.3448, allocations: 20.88 kB / 0.5226 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.3449, allocations: 11.38 kB / 0.5226 GB, free: 10.93 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.0003529/0.3452, allocations: 196.1 kB / 0.5228 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.92e-05/0.3453, allocations: 38.28 kB / 0.5229 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004882/0.3458, allocations: 269.9 kB / 0.5231 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3458, allocations: 3.641 kB / 0.5231 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.3458, allocations: 0 / 0.5231 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3458, allocations: 1.812 kB / 0.5231 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.3471, allocations: 0.738 MB / 0.5238 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3471, allocations: 2.031 kB / 0.5238 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002045/0.3473, allocations: 39.83 kB / 0.5239 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.3474, allocations: 33.66 kB / 0.5239 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.3474, allocations: 7.406 kB / 0.5239 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.3475, allocations: 7.469 kB / 0.5239 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.3475, allocations: 5.312 kB / 0.5239 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005759/0.3481, allocations: 438.1 kB / 0.5243 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.529e-05/0.3482, allocations: 106.7 kB / 0.5244 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.23e-05/0.3482, allocations: 8.734 kB / 0.5245 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.3484, allocations: 11.47 kB / 0.5245 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.3484, allocations: 21.36 kB / 0.5245 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.3484, allocations: 4.781 kB / 0.5245 GB, free: 9.703 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.3487, allocations: 224 kB / 0.5247 GB, free: 9.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3487, allocations: 0 / 0.5247 GB, free: 9.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005044/0.3492, allocations: 90.41 kB / 0.5248 GB, free: 9.57 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.0009086/0.3501, allocations: 0.9749 MB / 0.5257 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007596/0.3509, allocations: 417.8 kB / 0.5261 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3509, allocations: 0 / 0.5261 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.3511, allocations: 183 kB / 0.5263 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.3516, allocations: 64.31 kB / 0.5264 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004869/0.3565, allocations: 3.568 MB / 0.5299 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000533/0.3571, allocations: 0.8482 MB / 0.5307 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001934/0.3573, allocations: 59.88 kB / 0.5307 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.3575, allocations: 127.3 kB / 0.5309 GB, free: 5.219 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3575, allocations: 0 / 0.5309 GB, free: 5.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.3927, allocations: 7.361 MB / 0.5381 GB, free: 2.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.72, allocations: 12.59 kB / 0.5381 GB, free: 2.211 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