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.001524/0.001524, allocations: 114.8 kB / 17.06 MB, free: 5.812 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.001851/0.001851, allocations: 200 kB / 18 MB, free: 4.949 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3374, allocations: 58.05 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.00512/0.3425, allocations: 4.576 MB / 0.5081 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.3446, allocations: 1.306 MB / 0.5094 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.3449, allocations: 17.16 kB / 0.5094 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.3459, allocations: 404 kB / 0.5098 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004899/0.3464, allocations: 252.3 kB / 0.51 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004055/0.3469, allocations: 163.6 kB / 0.5102 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006155/0.3475, allocations: 0.5616 MB / 0.5107 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00046/0.3479, allocations: 282.4 kB / 0.511 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004005/0.3484, allocations: 266 kB / 0.5112 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004402/0.3488, allocations: 281.1 kB / 0.5115 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.033e-05/0.3489, allocations: 30.28 kB / 0.5115 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.3491, allocations: 121.1 kB / 0.5116 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.3493, allocations: 199 kB / 0.5118 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.3495, allocations: 213.7 kB / 0.512 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000612/0.3501, allocations: 0.5177 MB / 0.5125 GB, free: 1.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3502, allocations: 0.6094 kB / 0.5125 GB, free: 1.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3502, allocations: 1.094 kB / 0.5125 GB, free: 1.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3502, allocations: 0 / 0.5125 GB, free: 1.965 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.001081/0.3513, allocations: 0.6981 MB / 0.5132 GB, free: 1.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3513, allocations: 13.02 kB / 0.5132 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.983e-05/0.3514, allocations: 82.08 kB / 0.5133 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000617/0.352, allocations: 86.39 kB / 0.5134 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006508/0.3527, allocations: 406.7 kB / 0.5138 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.3528, allocations: 31.27 kB / 0.5138 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.3529, allocations: 46.7 kB / 0.5139 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000775/0.3537, allocations: 478 kB / 0.5143 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3537, allocations: 5.125 kB / 0.5143 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.3538, allocations: 20.06 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.3539, allocations: 28.69 kB / 0.5144 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005512/0.3545, allocations: 353.2 kB / 0.5147 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.3565, allocations: 1.715 MB / 0.5164 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.3569, allocations: 155.5 kB / 0.5165 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.3571, allocations: 115.2 kB / 0.5166 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.3571, allocations: 1.188 kB / 0.5166 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.3572, allocations: 41.66 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 2.534e-06/0.3572, allocations: 4 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001656/0.3589, allocations: 0.8804 MB / 0.5175 GB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.3589, allocations: 87.45 kB / 0.5176 GB, free: 14.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.3593, allocations: 315.4 kB / 0.5179 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.3593, allocations: 31.33 kB / 0.518 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.3594, allocations: 248.7 kB / 0.5182 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.3595, allocations: 65.58 kB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-05/0.3596, allocations: 62.91 kB / 0.5183 GB, free: 13.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3597, allocations: 344.8 kB / 0.5186 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.3599, allocations: 96.58 kB / 0.5187 GB, free: 13.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.3601, allocations: 199.6 kB / 0.5189 GB, free: 13.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.3605, allocations: 327.8 kB / 0.5192 GB, free: 13.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3605, allocations: 5.219 kB / 0.5192 GB, free: 13.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008749/0.3614, allocations: 468.2 kB / 0.5197 GB, free: 13.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3614, allocations: 5.5 kB / 0.5197 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006159/0.362, allocations: 314.4 kB / 0.52 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004962/0.3625, allocations: 142 kB / 0.5201 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.3627, allocations: 52.42 kB / 0.5202 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/0.3654, allocations: 2.448 MB / 0.5226 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.3656, allocations: 16.28 kB / 0.5226 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.3656, allocations: 14.81 kB / 0.5226 GB, free: 10.99 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.0002041/0.3658, allocations: 185.2 kB / 0.5228 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.3659, allocations: 30.12 kB / 0.5228 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004224/0.3663, allocations: 270.1 kB / 0.5231 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3663, allocations: 3.266 kB / 0.5231 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3664, allocations: 0 / 0.5231 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3664, allocations: 2.734 kB / 0.5231 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.3675, allocations: 0.7382 MB / 0.5238 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3675, allocations: 5.188 kB / 0.5238 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.3677, allocations: 36.12 kB / 0.5238 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.3678, allocations: 38.58 kB / 0.5239 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.3679, allocations: 2.984 kB / 0.5239 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3679, allocations: 6.766 kB / 0.5239 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3679, allocations: 1.469 kB / 0.5239 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.3684, allocations: 447.4 kB / 0.5243 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-05/0.3685, allocations: 102.5 kB / 0.5244 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.3685, allocations: 8.906 kB / 0.5244 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3687, allocations: 5.844 kB / 0.5244 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.3687, allocations: 23.38 kB / 0.5244 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.3688, allocations: 4.719 kB / 0.5244 GB, free: 9.781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002364/0.369, allocations: 227.3 kB / 0.5247 GB, free: 9.656 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.369, allocations: 0 / 0.5247 GB, free: 9.656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00046/0.3695, allocations: 82.38 kB / 0.5247 GB, free: 9.652 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.0007941/0.3703, allocations: 0.9752 MB / 0.5257 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006804/0.371, allocations: 412.8 kB / 0.5261 GB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.371, allocations: 1.125 kB / 0.5261 GB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.3712, allocations: 177.9 kB / 0.5263 GB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.3717, allocations: 76.94 kB / 0.5263 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004739/0.3764, allocations: 3.567 MB / 0.5298 GB, free: 6.129 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/0.3769, allocations: 0.84 MB / 0.5306 GB, free: 5.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3771, allocations: 71.64 kB / 0.5307 GB, free: 5.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.3773, allocations: 122.8 kB / 0.5308 GB, free: 5.305 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3773, allocations: 0 / 0.5308 GB, free: 5.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04421/0.4215, allocations: 7.469 MB / 0.5381 GB, free: 2.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.39, allocations: 9.75 kB / 0.5381 GB, free: 2.234 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