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.001134/0.001134, allocations: 107 kB / 17.06 MB, free: 6.094 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.00105/0.00105, allocations: 195 kB / 18 MB, free: 5.172 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.349, allocations: 58.05 MB / 0.5036 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.005196/0.3543, allocations: 4.572 MB / 0.5081 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.3561, allocations: 1.314 MB / 0.5094 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.3563, allocations: 12.34 kB / 0.5094 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.3573, allocations: 399.3 kB / 0.5098 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004784/0.3578, allocations: 256 kB / 0.51 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.3582, allocations: 167.8 kB / 0.5102 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005299/0.3588, allocations: 0.5537 MB / 0.5107 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003904/0.3592, allocations: 286.8 kB / 0.511 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003221/0.3595, allocations: 259.7 kB / 0.5112 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00046/0.36, allocations: 284.2 kB / 0.5115 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.416e-05/0.36, allocations: 29.53 kB / 0.5115 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003188/0.3604, allocations: 129.9 kB / 0.5116 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002506/0.3606, allocations: 198.1 kB / 0.5118 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.3609, allocations: 214 kB / 0.512 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007347/0.3616, allocations: 0.514 MB / 0.5125 GB, free: 2.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3616, allocations: 3.938 kB / 0.5125 GB, free: 2.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3616, allocations: 1.094 kB / 0.5125 GB, free: 2.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.3617, allocations: 0.7031 kB / 0.5125 GB, free: 2.105 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.001246/0.3629, allocations: 0.6929 MB / 0.5132 GB, free: 1.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.363, allocations: 13.95 kB / 0.5132 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.3631, allocations: 81.31 kB / 0.5133 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006404/0.3637, allocations: 83.05 kB / 0.5134 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007077/0.3644, allocations: 414.9 kB / 0.5138 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/0.3645, allocations: 23.48 kB / 0.5138 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.3646, allocations: 53.94 kB / 0.5139 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007387/0.3654, allocations: 478.9 kB / 0.5143 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.3654, allocations: 5.125 kB / 0.5143 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.3655, allocations: 12.19 kB / 0.5143 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.3656, allocations: 28.11 kB / 0.5144 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005587/0.3661, allocations: 352.5 kB / 0.5147 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.3683, allocations: 1.729 MB / 0.5164 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.3686, allocations: 151.1 kB / 0.5165 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.3688, allocations: 118.2 kB / 0.5166 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.3688, allocations: 2.094 kB / 0.5166 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.3689, allocations: 32.67 kB / 0.5167 GB, free: 15.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.713e-06/0.3689, allocations: 0.5312 kB / 0.5167 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001785/0.3707, allocations: 0.901 MB / 0.5176 GB, free: 14.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/0.3708, allocations: 79.94 kB / 0.5176 GB, free: 14.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.3712, allocations: 310.5 kB / 0.5179 GB, free: 14.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3712, allocations: 27.62 kB / 0.518 GB, free: 14.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.3714, allocations: 249.2 kB / 0.5182 GB, free: 14.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.3714, allocations: 61.86 kB / 0.5183 GB, free: 14.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.3716, allocations: 61.59 kB / 0.5183 GB, free: 14.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3717, allocations: 348.2 kB / 0.5186 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3719, allocations: 98.36 kB / 0.5187 GB, free: 13.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.3721, allocations: 207.6 kB / 0.5189 GB, free: 13.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.3725, allocations: 323.2 kB / 0.5192 GB, free: 13.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3725, allocations: 5.062 kB / 0.5192 GB, free: 13.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009174/0.3735, allocations: 468.4 kB / 0.5197 GB, free: 13.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3735, allocations: 10.53 kB / 0.5197 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006338/0.3741, allocations: 314.4 kB / 0.52 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005119/0.3747, allocations: 136.9 kB / 0.5201 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.3749, allocations: 56.92 kB / 0.5202 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002894/0.3778, allocations: 2.439 MB / 0.5226 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.378, allocations: 17.78 kB / 0.5226 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.3781, allocations: 13.59 kB / 0.5226 GB, free: 11.13 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.0002461/0.3783, allocations: 187.2 kB / 0.5228 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.3784, allocations: 30.09 kB / 0.5228 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/0.3789, allocations: 266.5 kB / 0.5231 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3789, allocations: 6.625 kB / 0.5231 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.3789, allocations: 1.25 kB / 0.5231 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3789, allocations: 1.312 kB / 0.5231 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.3801, allocations: 0.7431 MB / 0.5238 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3802, allocations: 2.172 kB / 0.5238 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.3804, allocations: 39.86 kB / 0.5238 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/0.3805, allocations: 37.33 kB / 0.5239 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.3806, allocations: 8.078 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.3806, allocations: 5.438 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3806, allocations: 1.375 kB / 0.5239 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/0.3812, allocations: 443 kB / 0.5243 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.3813, allocations: 108.3 kB / 0.5244 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.3814, allocations: 8.156 kB / 0.5244 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.3815, allocations: 6.656 kB / 0.5244 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/0.3816, allocations: 18.75 kB / 0.5244 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.3816, allocations: 4.641 kB / 0.5244 GB, free: 9.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002702/0.3819, allocations: 219.2 kB / 0.5247 GB, free: 9.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3819, allocations: 0 / 0.5247 GB, free: 9.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005412/0.3824, allocations: 86.38 kB / 0.5247 GB, free: 9.793 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.0009921/0.3834, allocations: 0.9816 MB / 0.5257 GB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008473/0.3843, allocations: 412.9 kB / 0.5261 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3843, allocations: 1.438 kB / 0.5261 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.3846, allocations: 181.7 kB / 0.5263 GB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.3851, allocations: 65.48 kB / 0.5263 GB, free: 8.609 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005821/0.3909, allocations: 3.564 MB / 0.5298 GB, free: 6.273 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008018/0.3918, allocations: 0.8394 MB / 0.5306 GB, free: 5.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002349/0.392, allocations: 63.73 kB / 0.5307 GB, free: 5.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.3922, allocations: 126.9 kB / 0.5308 GB, free: 5.453 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3922, allocations: 0 / 0.5308 GB, free: 5.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.4244, allocations: 7.472 MB / 0.5381 GB, free: 2.387 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.28, allocations: 4.594 kB / 0.5381 GB, free: 2.383 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