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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 208.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1909/0.1909, allocations: 38.56 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002371, allocations: 59.91 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3416, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.006924/0.3485, allocations: 4.473 MB / 0.5463 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.3514, allocations: 1.262 MB / 0.5475 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003462/0.3517, allocations: 20.84 kB / 0.5476 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.353, allocations: 390.8 kB / 0.5479 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007128/0.3537, allocations: 253.5 kB / 0.5482 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.3543, allocations: 168.6 kB / 0.5483 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007424/0.355, allocations: 0.5593 MB / 0.5489 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004724/0.3555, allocations: 233.4 kB / 0.5491 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006858/0.3562, allocations: 273 kB / 0.5494 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006638/0.3568, allocations: 284.6 kB / 0.5496 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.3569, allocations: 28.84 kB / 0.5497 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000403/0.3573, allocations: 128.4 kB / 0.5498 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002782/0.3576, allocations: 191.8 kB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002748/0.3579, allocations: 188 kB / 0.5502 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007567/0.3586, allocations: 0.5169 MB / 0.5507 GB, free: 9.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.3586, allocations: 5.188 kB / 0.5507 GB, free: 9.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3586, allocations: 0 / 0.5507 GB, free: 9.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.3587, allocations: 0 / 0.5507 GB, free: 9.797 MB / 398.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.001494/0.3601, allocations: 0.6303 MB / 0.5513 GB, free: 9.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.261e-05/0.3602, allocations: 13.8 kB / 0.5513 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.3604, allocations: 80.75 kB / 0.5514 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006703/0.361, allocations: 87.52 kB / 0.5515 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007894/0.3618, allocations: 349.3 kB / 0.5518 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.3619, allocations: 22.16 kB / 0.5518 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.362, allocations: 55.75 kB / 0.5519 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.3628, allocations: 477.1 kB / 0.5523 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3628, allocations: 1.094 kB / 0.5523 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.857e-05/0.3629, allocations: 16.45 kB / 0.5523 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.363, allocations: 32.28 kB / 0.5524 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.3636, allocations: 347.9 kB / 0.5527 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.3661, allocations: 1.49 MB / 0.5542 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.3664, allocations: 144.1 kB / 0.5543 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.3666, allocations: 110.3 kB / 0.5544 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.3666, allocations: 6.062 kB / 0.5544 GB, free: 6.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.3666, allocations: 36.66 kB / 0.5544 GB, free: 6.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.794e-06/0.3666, allocations: 4 kB / 0.5544 GB, free: 6.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001631/0.3682, allocations: 0.74 MB / 0.5552 GB, free: 6.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.3683, allocations: 79.42 kB / 0.5552 GB, free: 6.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.3687, allocations: 316.6 kB / 0.5555 GB, free: 6.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.3687, allocations: 33.64 kB / 0.5556 GB, free: 6.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.3689, allocations: 260 kB / 0.5558 GB, free: 5.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.719e-05/0.369, allocations: 67.45 kB / 0.5559 GB, free: 5.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3691, allocations: 66.06 kB / 0.5559 GB, free: 5.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.3693, allocations: 342.8 kB / 0.5563 GB, free: 5.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.3695, allocations: 100.2 kB / 0.5564 GB, free: 5.164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.3698, allocations: 197.4 kB / 0.5566 GB, free: 4.926 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.3703, allocations: 326.6 kB / 0.5569 GB, free: 4.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3703, allocations: 4 kB / 0.5569 GB, free: 4.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009564/0.3713, allocations: 465.7 kB / 0.5573 GB, free: 4.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3713, allocations: 8 kB / 0.5573 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006444/0.3719, allocations: 315.5 kB / 0.5576 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005082/0.3724, allocations: 137 kB / 0.5578 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.3726, allocations: 47.92 kB / 0.5578 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003232/0.3759, allocations: 2.334 MB / 0.5601 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.3761, allocations: 15.98 kB / 0.5601 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.3761, allocations: 15.94 kB / 0.5601 GB, free: 1.121 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.0002746/0.3764, allocations: 189.7 kB / 0.5603 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.3765, allocations: 35.81 kB / 0.5603 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004837/0.3769, allocations: 265.3 kB / 0.5606 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.377, allocations: 4 kB / 0.5606 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.377, allocations: 0 / 0.5606 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.377, allocations: 0 / 0.5606 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.3782, allocations: 0.6796 MB / 0.5612 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3782, allocations: 0 / 0.5612 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.3784, allocations: 43.97 kB / 0.5613 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001376/0.3786, allocations: 40.83 kB / 0.5613 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.3786, allocations: 8 kB / 0.5613 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3786, allocations: 0 / 0.5613 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3786, allocations: 4 kB / 0.5613 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006117/0.3792, allocations: 442.5 kB / 0.5618 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.3793, allocations: 23.81 kB / 0.5618 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.3793, allocations: 12.03 kB / 0.5618 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.3795, allocations: 4 kB / 0.5618 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.3795, allocations: 19.91 kB / 0.5618 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.3795, allocations: 8 kB / 0.5618 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.3798, allocations: 223 kB / 0.562 GB, free: 15.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3798, allocations: 0 / 0.562 GB, free: 15.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004893/0.3803, allocations: 84 kB / 0.5621 GB, free: 14.95 MB / 414.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.0009683/0.3813, allocations: 0.9693 MB / 0.5631 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007528/0.382, allocations: 405.5 kB / 0.5635 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.382, allocations: 4 kB / 0.5635 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.3822, allocations: 100.7 kB / 0.5636 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.3827, allocations: 76.83 kB / 0.5636 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005242/0.388, allocations: 3.563 MB / 0.5671 GB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.3883, allocations: 233.1 kB / 0.5673 GB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.3885, allocations: 70.92 kB / 0.5674 GB, free: 9.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.3887, allocations: 123.4 kB / 0.5675 GB, free: 9.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3887, allocations: 0 / 0.5675 GB, free: 9.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04036/0.429, allocations: 7.918 MB / 0.5752 GB, free: 1.414 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.61, allocations: 11.16 kB / 0.5753 GB, free: 1.406 MB / 414.1 MB " [Timeout remaining time 646] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.520419396925718]