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.001021/0.001021, allocations: 92.69 kB / 16.65 MB, free: 6.59 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.00108/0.00108, allocations: 181.7 kB / 17.56 MB, free: 6.203 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.27/1.27, allocations: 223.3 MB / 241.6 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1649/0.1649, allocations: 38.1 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002884, allocations: 8 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 59.17 MB / 460 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.005229/0.1139, allocations: 4.818 MB / 464.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.1162, allocations: 1.473 MB / 466.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002286/0.1165, allocations: 27.81 kB / 466.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003253/0.1168, allocations: 83.44 kB / 466.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005516/0.1174, allocations: 235 kB / 466.6 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.1178, allocations: 151.8 kB / 466.8 MB, free: 188 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008152/0.1186, allocations: 0.8494 MB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000916/0.1195, allocations: 0.5477 MB / 468.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003284/0.1199, allocations: 207 kB / 468.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005027/0.1204, allocations: 279 kB / 468.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.1205, allocations: 12 kB / 468.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.1207, allocations: 131.8 kB / 468.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.1209, allocations: 175.5 kB / 468.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.1211, allocations: 224.6 kB / 469.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.1216, allocations: 0.4943 MB / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1216, allocations: 0 / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1216, allocations: 0 / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1216, allocations: 0 / 469.7 MB, free: 13.25 MB / 350.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.001058/0.1227, allocations: 0.6328 MB / 470.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1228, allocations: 8.031 kB / 470.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.1229, allocations: 82.66 kB / 470.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005638/0.1234, allocations: 84.3 kB / 470.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.124, allocations: 383.4 kB / 470.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.124, allocations: 33.3 kB / 470.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.1242, allocations: 47.92 kB / 470.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.1249, allocations: 476.8 kB / 471.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.1249, allocations: 4 kB / 471.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.1249, allocations: 15.98 kB / 471.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.873e-05/0.1251, allocations: 24.98 kB / 471.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000537/0.1256, allocations: 359.7 kB / 471.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1277, allocations: 1.725 MB / 473.5 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.128, allocations: 153.2 kB / 473.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.1282, allocations: 121.6 kB / 473.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.1282, allocations: 4 kB / 473.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.1282, allocations: 34.5 kB / 473.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.1282, allocations: 0 / 473.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001553/0.1298, allocations: 0.8836 MB / 474.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.1299, allocations: 81.05 kB / 474.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.1302, allocations: 312.5 kB / 475.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.1302, allocations: 29.7 kB / 475.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.1304, allocations: 255.6 kB / 475.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.47e-05/0.1305, allocations: 67.08 kB / 475.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.634e-05/0.1305, allocations: 33.7 kB / 475.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1307, allocations: 342.8 kB / 475.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1308, allocations: 108.1 kB / 475.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.1311, allocations: 201.2 kB / 476.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.1315, allocations: 330.7 kB / 476.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1315, allocations: 3.938 kB / 476.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008191/0.1323, allocations: 472.9 kB / 476.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1323, allocations: 8 kB / 476.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005853/0.1329, allocations: 316.3 kB / 477.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004745/0.1334, allocations: 140.7 kB / 477.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.1336, allocations: 52.08 kB / 477.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/0.136, allocations: 2.186 MB / 479.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.1362, allocations: 19.92 kB / 479.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.1362, allocations: 16 kB / 479.6 MB, free: 2.641 MB / 350.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.0001886/0.1364, allocations: 185.7 kB / 479.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.1364, allocations: 31.56 kB / 479.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000413/0.1369, allocations: 264.5 kB / 480.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1369, allocations: 3.938 kB / 480.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.1369, allocations: 4 kB / 480.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1369, allocations: 0 / 480.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.1379, allocations: 0.7507 MB / 480.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1379, allocations: 0 / 480.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.1381, allocations: 35.98 kB / 480.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.661e-05/0.1383, allocations: 40.81 kB / 480.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1383, allocations: 4 kB / 480.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/0.1383, allocations: 15.98 kB / 480.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1383, allocations: 0 / 480.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/0.1388, allocations: 436.8 kB / 481.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.225e-05/0.1389, allocations: 108.7 kB / 481.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.379e-05/0.1389, allocations: 12 kB / 481.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1391, allocations: 11.98 kB / 481.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.1391, allocations: 11.92 kB / 481.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.1391, allocations: 4 kB / 481.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.1393, allocations: 227 kB / 481.7 MB, free: 400 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.293e-06/0.1394, allocations: 0 / 481.7 MB, free: 400 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004088/0.1398, allocations: 87.94 kB / 481.8 MB, free: 312 kB / 350.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.0008204/0.1406, allocations: 0.9801 MB / 482.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006476/0.1413, allocations: 406.2 kB / 483.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.1413, allocations: 0 / 483.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.1415, allocations: 182.8 kB / 483.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.142, allocations: 61.12 kB / 483.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.1466, allocations: 3.781 MB / 487.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004882/0.1471, allocations: 0.8419 MB / 488 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.1473, allocations: 66.91 kB / 488.1 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.1475, allocations: 123.4 kB / 488.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1475, allocations: 0 / 488.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02403/0.1715, allocations: 6.817 MB / 495.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002986/0.1719, allocations: 246.1 kB / 495.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.006, allocations: 0 / 495.3 MB, free: 2.707 MB / 366.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","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches