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.00136/0.00136, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001353/0.001352, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.327/1.327, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.181/0.181, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 62.28 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.08363, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.00574/0.0894, allocations: 4.564 MB / 461.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.09145, allocations: 1.305 MB / 462.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.09168, allocations: 15.88 kB / 462.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.0928, allocations: 401.2 kB / 463.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005801/0.0934, allocations: 258.8 kB / 463.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.09383, allocations: 163.7 kB / 463.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005764/0.09442, allocations: 0.5607 MB / 464.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004182/0.09485, allocations: 293.2 kB / 464.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003549/0.09521, allocations: 255 kB / 464.8 MB, free: 172 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004641/0.09569, allocations: 279.1 kB / 465 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.124e-05/0.09576, allocations: 28 kB / 465.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.09603, allocations: 123.8 kB / 465.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.09623, allocations: 195.5 kB / 465.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.09646, allocations: 222.9 kB / 465.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005166/0.09699, allocations: 0.51 MB / 466.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.097, allocations: 0 / 466.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09701, allocations: 4 kB / 466.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.09703, allocations: 3.938 kB / 466.1 MB, free: 14.82 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.001129/0.09816, allocations: 0.6952 MB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.09822, allocations: 15.89 kB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.092e-05/0.0983, allocations: 74.66 kB / 466.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005976/0.09891, allocations: 84.41 kB / 467 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005842/0.09951, allocations: 391.2 kB / 467.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.09954, allocations: 25.38 kB / 467.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.09967, allocations: 47.91 kB / 467.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006469/0.1003, allocations: 476.8 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1004, allocations: 3.984 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.1004, allocations: 19.94 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.1005, allocations: 28.98 kB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005234/0.101, allocations: 351.7 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.1032, allocations: 1.733 MB / 470 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.1035, allocations: 157.1 kB / 470.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.1036, allocations: 113.6 kB / 470.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.1037, allocations: 4 kB / 470.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.1037, allocations: 42.5 kB / 470.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.914e-06/0.1037, allocations: 0 / 470.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001483/0.1052, allocations: 0.8784 MB / 471.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.1053, allocations: 89.17 kB / 471.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.1056, allocations: 312.5 kB / 471.6 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.1056, allocations: 25.7 kB / 471.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.1058, allocations: 251.4 kB / 471.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/0.1058, allocations: 67.09 kB / 471.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.1059, allocations: 61.97 kB / 472 MB, free: 8.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.106, allocations: 342.8 kB / 472.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.1062, allocations: 100.2 kB / 472.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1064, allocations: 193.4 kB / 472.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.1068, allocations: 335 kB / 472.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.1068, allocations: 4 kB / 472.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008653/0.1077, allocations: 465.4 kB / 473.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.1077, allocations: 10.19 kB / 473.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006041/0.1083, allocations: 319.8 kB / 473.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004744/0.1088, allocations: 140.7 kB / 473.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.109, allocations: 51.91 kB / 473.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/0.1117, allocations: 2.458 MB / 476.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.1119, allocations: 16.05 kB / 476.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.1119, allocations: 16 kB / 476.4 MB, free: 3.867 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.0001844/0.1121, allocations: 189.7 kB / 476.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.1122, allocations: 27.62 kB / 476.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004303/0.1126, allocations: 265.5 kB / 476.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.1126, allocations: 0 / 476.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.1127, allocations: 0 / 476.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1127, allocations: 4 kB / 476.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.1138, allocations: 0.735 MB / 477.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1138, allocations: 4 kB / 477.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.114, allocations: 36.05 kB / 477.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.1141, allocations: 36.83 kB / 477.7 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1142, allocations: 7.938 kB / 477.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.181e-05/0.1142, allocations: 7.984 kB / 477.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1142, allocations: 3.938 kB / 477.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005447/0.1147, allocations: 446.3 kB / 478.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.225e-05/0.1148, allocations: 108.8 kB / 478.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.1149, allocations: 7.938 kB / 478.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.115, allocations: 11.92 kB / 478.3 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.1151, allocations: 15.98 kB / 478.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.1151, allocations: 4 kB / 478.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002126/0.1153, allocations: 227 kB / 478.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1153, allocations: 0 / 478.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000448/0.1158, allocations: 84 kB / 478.6 MB, free: 1.539 MB / 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.0007926/0.1166, allocations: 0.9753 MB / 479.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000703/0.1173, allocations: 434.9 kB / 480 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1173, allocations: 0 / 480 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000219/0.1175, allocations: 176.2 kB / 480.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.118, allocations: 61.05 kB / 480.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004349/0.1224, allocations: 3.571 MB / 483.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.1228, allocations: 0.8457 MB / 484.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000193/0.123, allocations: 62.91 kB / 484.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.1232, allocations: 123.4 kB / 484.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1232, allocations: 0 / 484.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02608/0.1493, allocations: 7.224 MB / 492 MB, free: 3.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.35, allocations: 12.05 kB / 492.1 MB, free: 3.938 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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