Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",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.001549/0.001549, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001649/0.001649, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.293/1.293, allocations: 222.9 MB / 241.5 MB, free: 15.21 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.03 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 65.77 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.0964, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.00635/0.1028, allocations: 4.588 MB / 461.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.105, allocations: 1.309 MB / 462.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.1053, allocations: 11.94 kB / 462.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.1065, allocations: 410.2 kB / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006254/0.1071, allocations: 246.8 kB / 463.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.1076, allocations: 171.6 kB / 463.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006326/0.1082, allocations: 0.5529 MB / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004585/0.1087, allocations: 293.2 kB / 464.5 MB, free: 376 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.1092, allocations: 255 kB / 464.8 MB, free: 120 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006073/0.1098, allocations: 283.1 kB / 465.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.163e-05/0.1099, allocations: 28 kB / 465.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003335/0.1102, allocations: 127.7 kB / 465.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.1105, allocations: 195.5 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003053/0.1108, allocations: 215 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006312/0.1114, allocations: 0.4984 MB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1114, allocations: 0 / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1114, allocations: 0 / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.1115, allocations: 4 kB / 466.1 MB, free: 14.78 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.001319/0.1128, allocations: 0.6991 MB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1128, allocations: 15.89 kB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.892e-05/0.113, allocations: 82.7 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006364/0.1136, allocations: 80.31 kB / 467 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.1142, allocations: 387.3 kB / 467.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1143, allocations: 29.36 kB / 467.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1144, allocations: 43.92 kB / 467.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007076/0.1151, allocations: 472.8 kB / 467.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1151, allocations: 4 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.189e-05/0.1152, allocations: 11.98 kB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/0.1153, allocations: 28.98 kB / 467.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005402/0.1159, allocations: 343.7 kB / 468.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.118, allocations: 1.702 MB / 470 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.1183, allocations: 161 kB / 470.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.1185, allocations: 109.7 kB / 470.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.1185, allocations: 7.938 kB / 470.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1185, allocations: 34.5 kB / 470.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/0.1186, allocations: 0 / 470.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001471/0.12, allocations: 0.8515 MB / 471.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.1201, allocations: 81.11 kB / 471.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.1204, allocations: 308.5 kB / 471.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.1204, allocations: 25.7 kB / 471.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.1206, allocations: 255.3 kB / 471.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.407e-05/0.1207, allocations: 75.08 kB / 471.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.024e-05/0.1208, allocations: 54.11 kB / 471.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1209, allocations: 342.8 kB / 472.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.1211, allocations: 96.22 kB / 472.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.1213, allocations: 189.4 kB / 472.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004071/0.1217, allocations: 318.8 kB / 472.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1217, allocations: 0 / 472.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008453/0.1225, allocations: 453.9 kB / 473.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1226, allocations: 8 kB / 473.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005964/0.1232, allocations: 291 kB / 473.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004801/0.1237, allocations: 132.7 kB / 473.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.1239, allocations: 55.91 kB / 473.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.1269, allocations: 2.391 MB / 476.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.1271, allocations: 15.98 kB / 476.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.1272, allocations: 16 kB / 476.2 MB, free: 4.055 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.0002438/0.1274, allocations: 189.7 kB / 476.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.1275, allocations: 27.72 kB / 476.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000449/0.128, allocations: 245.4 kB / 476.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.128, allocations: 4 kB / 476.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.128, allocations: 0 / 476.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.128, allocations: 0 / 476.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1291, allocations: 0.7195 MB / 477.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1291, allocations: 0 / 477.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.1294, allocations: 39.97 kB / 477.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.669e-05/0.1295, allocations: 28.84 kB / 477.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.1295, allocations: 4 kB / 477.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.1307, allocations: 1.6 MB / 479 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1308, allocations: 7.875 kB / 479 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005376/0.1313, allocations: 417.6 kB / 479.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.713e-05/0.1314, allocations: 112.7 kB / 479.6 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.1315, allocations: 3.938 kB / 479.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.1316, allocations: 12.03 kB / 479.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.1317, allocations: 19.92 kB / 479.6 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.1317, allocations: 8 kB / 479.6 MB, free: 376 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.1319, allocations: 219 kB / 479.8 MB, free: 160 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1319, allocations: 0 / 479.8 MB, free: 160 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004723/0.1324, allocations: 84 kB / 479.9 MB, free: 76 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): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009795/0.1334, allocations: 0.9576 MB / 480.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007471/0.1342, allocations: 410.5 kB / 481.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1342, allocations: 0 / 481.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004717/0.1346, allocations: 231.4 kB / 481.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000527/0.1352, allocations: 76.88 kB / 481.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/0.1399, allocations: 3.497 MB / 485.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.1404, allocations: 0.8457 MB / 485.9 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.1406, allocations: 58.92 kB / 486 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.1407, allocations: 123.4 kB / 486.1 MB, free: 9.609 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1407, allocations: 4 kB / 486.1 MB, free: 9.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.1703, allocations: 7.361 MB / 493.4 MB, free: 2.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/10.93, allocations: 12.47 kB / 493.5 MB, free: 2.371 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_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_PVsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches