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.001229/0.001229, allocations: 111.8 kB / 17.07 MB, free: 5.973 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.00124/0.00124, allocations: 200 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.437/1.437, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.183/0.183, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 71.88 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3331, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.005381/0.3385, allocations: 4.566 MB / 0.5081 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.3405, allocations: 1.306 MB / 0.5094 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.3407, allocations: 13.44 kB / 0.5094 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.3418, allocations: 408.7 kB / 0.5098 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000548/0.3424, allocations: 253.1 kB / 0.51 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004944/0.3429, allocations: 162.9 kB / 0.5102 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006119/0.3435, allocations: 0.5608 MB / 0.5107 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.344, allocations: 288.8 kB / 0.511 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.3443, allocations: 252.6 kB / 0.5112 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004851/0.3448, allocations: 276.2 kB / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.666e-05/0.3449, allocations: 29.91 kB / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002951/0.3452, allocations: 138.7 kB / 0.5116 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002377/0.3454, allocations: 189.5 kB / 0.5118 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000234/0.3457, allocations: 217.1 kB / 0.512 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000705/0.3464, allocations: 0.5184 MB / 0.5125 GB, free: 1.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3464, allocations: 0 / 0.5125 GB, free: 1.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3464, allocations: 0 / 0.5125 GB, free: 1.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3464, allocations: 2.016 kB / 0.5125 GB, free: 1.984 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.00111/0.3475, allocations: 0.714 MB / 0.5132 GB, free: 1.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3476, allocations: 13.3 kB / 0.5133 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.3477, allocations: 74.23 kB / 0.5133 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005697/0.3482, allocations: 91.88 kB / 0.5134 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.3489, allocations: 411.6 kB / 0.5138 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.3489, allocations: 26.72 kB / 0.5138 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.349, allocations: 54.09 kB / 0.5139 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.3497, allocations: 479 kB / 0.5143 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3497, allocations: 0 / 0.5143 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/0.3498, allocations: 15.83 kB / 0.5143 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/0.3499, allocations: 24.75 kB / 0.5144 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.3504, allocations: 349.8 kB / 0.5147 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.3527, allocations: 1.732 MB / 0.5164 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003667/0.3531, allocations: 158 kB / 0.5165 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.3533, allocations: 115.4 kB / 0.5167 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.3534, allocations: 1.281 kB / 0.5167 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3534, allocations: 44.8 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.754e-06/0.3534, allocations: 0 / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001984/0.3554, allocations: 0.8841 MB / 0.5176 GB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/0.3555, allocations: 83.11 kB / 0.5176 GB, free: 14.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.356, allocations: 318.8 kB / 0.5179 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.356, allocations: 27.5 kB / 0.518 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.3562, allocations: 258 kB / 0.5182 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/0.3563, allocations: 69.73 kB / 0.5183 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.3565, allocations: 61.86 kB / 0.5183 GB, free: 13.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.3567, allocations: 344.8 kB / 0.5187 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.3569, allocations: 98.53 kB / 0.5188 GB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/0.3572, allocations: 205.8 kB / 0.519 GB, free: 13.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.3577, allocations: 331 kB / 0.5193 GB, free: 13.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3577, allocations: 1.125 kB / 0.5193 GB, free: 13.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009711/0.3586, allocations: 479.3 kB / 0.5197 GB, free: 13.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.3587, allocations: 6.453 kB / 0.5197 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006638/0.3593, allocations: 319.5 kB / 0.5201 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/0.3599, allocations: 136.2 kB / 0.5202 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.3601, allocations: 53.34 kB / 0.5202 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003232/0.3633, allocations: 2.432 MB / 0.5226 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.3636, allocations: 21.19 kB / 0.5226 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.3637, allocations: 14.95 kB / 0.5226 GB, free: 10.97 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.0003484/0.364, allocations: 188.9 kB / 0.5228 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.731e-05/0.3641, allocations: 33.23 kB / 0.5229 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005317/0.3646, allocations: 275.3 kB / 0.5231 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3646, allocations: 2.75 kB / 0.5231 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3647, allocations: 1.375 kB / 0.5231 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3647, allocations: 0.8438 kB / 0.5231 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/0.3659, allocations: 0.7383 MB / 0.5238 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3659, allocations: 1.156 kB / 0.5238 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.3661, allocations: 40.78 kB / 0.5239 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.3663, allocations: 37.89 kB / 0.5239 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.3663, allocations: 8.234 kB / 0.5239 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.3663, allocations: 5.766 kB / 0.5239 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3663, allocations: 1.156 kB / 0.5239 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006082/0.3669, allocations: 440.1 kB / 0.5244 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.172e-05/0.367, allocations: 106.9 kB / 0.5245 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.3671, allocations: 8.016 kB / 0.5245 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.3672, allocations: 10.25 kB / 0.5245 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3673, allocations: 19.89 kB / 0.5245 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.3673, allocations: 4.188 kB / 0.5245 GB, free: 9.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002491/0.3675, allocations: 223.5 kB / 0.5247 GB, free: 9.633 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3675, allocations: 0 / 0.5247 GB, free: 9.633 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.368, allocations: 87 kB / 0.5248 GB, free: 9.625 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.0009844/0.369, allocations: 0.9737 MB / 0.5257 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008335/0.3699, allocations: 414.2 kB / 0.5261 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3699, allocations: 0 / 0.5261 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.3702, allocations: 181.6 kB / 0.5263 GB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006048/0.3708, allocations: 70.23 kB / 0.5264 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/0.3759, allocations: 3.58 MB / 0.5299 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.3764, allocations: 0.8395 MB / 0.5307 GB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.3767, allocations: 67.61 kB / 0.5308 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.3768, allocations: 123 kB / 0.5309 GB, free: 5.27 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3769, allocations: 0 / 0.5309 GB, free: 5.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03516/0.412, allocations: 7.361 MB / 0.5381 GB, free: 2.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.02, allocations: 12.72 kB / 0.5381 GB, free: 2.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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