Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.00135/0.00135, allocations: 107.7 kB / 16.92 MB, free: 5.656 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.001329/0.001329, allocations: 189.6 kB / 17.85 MB, free: 5.176 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.402/1.402, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1965/0.1965, allocations: 38.04 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001479, allocations: 61.73 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.00527/0.1089, allocations: 3.91 MB / 460.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.1105, allocations: 0.8766 MB / 461.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000249/0.1108, allocations: 11.94 kB / 461.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.111, allocations: 43.58 kB / 461.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006264/0.1117, allocations: 163.1 kB / 462 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002532/0.1119, allocations: 83.84 kB / 462.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005348/0.1125, allocations: 378.7 kB / 462.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.1127, allocations: 88.53 kB / 462.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002783/0.113, allocations: 155.3 kB / 462.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.1133, allocations: 167.4 kB / 462.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.1133, allocations: 19.98 kB / 462.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.876e-05/0.1134, allocations: 16 kB / 462.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.696e-05/0.1135, allocations: 87.72 kB / 462.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.1137, allocations: 123.3 kB / 463.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.1139, allocations: 255 kB / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1139, allocations: 0 / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.114, allocations: 0 / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.114, allocations: 0 / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009375/0.1149, allocations: 0.5544 MB / 463.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.115, allocations: 15.89 kB / 463.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.452e-05/0.115, allocations: 50.73 kB / 463.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.1151, allocations: 32.56 kB / 464 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.1156, allocations: 303.8 kB / 464.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.1156, allocations: 16.44 kB / 464.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.1157, allocations: 24 kB / 464.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004096/0.1161, allocations: 266 kB / 464.6 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1161, allocations: 0 / 464.6 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.1162, allocations: 15.94 kB / 464.6 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.1162, allocations: 8 kB / 464.6 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.1164, allocations: 155.8 kB / 464.7 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.1177, allocations: 1.187 MB / 465.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/0.1179, allocations: 77.09 kB / 466 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.211e-05/0.1179, allocations: 33.81 kB / 466 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.118, allocations: 0 / 466 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.118, allocations: 38.56 kB / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.118, allocations: 0 / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006822/0.1187, allocations: 404.8 kB / 466.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.995e-05/0.1188, allocations: 81.11 kB / 466.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.119, allocations: 250.4 kB / 466.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1191, allocations: 29.83 kB / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1192, allocations: 195.6 kB / 467 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.1192, allocations: 27.64 kB / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.1193, allocations: 45.61 kB / 467.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1194, allocations: 330.8 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.145e-05/0.1195, allocations: 27.92 kB / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.1196, allocations: 126.9 kB / 467.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.1198, allocations: 172.8 kB / 467.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1198, allocations: 4 kB / 467.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002646/0.1201, allocations: 181.4 kB / 467.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.1201, allocations: 13.97 kB / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1201, allocations: 0 / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1201, allocations: 8 kB / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1203, allocations: 40.36 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1203, allocations: 4 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.849e-05/0.1204, allocations: 8 kB / 468 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.1204, allocations: 12 kB / 468 MB, free: 12.46 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.1206, allocations: 153.9 kB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.391e-05/0.1206, allocations: 27.64 kB / 468.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001659/0.1208, allocations: 99.31 kB / 468.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1208, allocations: 0 / 468.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1208, allocations: 4 kB / 468.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1208, allocations: 0 / 468.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004522/0.1213, allocations: 419.2 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1213, allocations: 3.984 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.575e-05/0.1214, allocations: 24.03 kB / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1214, allocations: 0 / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.1214, allocations: 4 kB / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.1214, allocations: 0 / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1214, allocations: 0 / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002571/0.1217, allocations: 228.8 kB / 468.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.052e-05/0.1218, allocations: 100.9 kB / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.1218, allocations: 8 kB / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.495e-05/0.1219, allocations: 0 / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.1219, allocations: 4 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.1219, allocations: 3.984 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000165/0.1221, allocations: 170 kB / 469.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.1221, allocations: 0 / 469.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.1225, allocations: 44.03 kB / 469.3 MB, free: 11.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005383/0.123, allocations: 0.7607 MB / 470 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001913/0.1232, allocations: 96.66 kB / 470.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1232, allocations: 8 kB / 470.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.975e-05/0.1233, allocations: 27.92 kB / 470.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.1238, allocations: 54.08 kB / 470.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.1264, allocations: 2.291 MB / 472.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1268, allocations: 0.7597 MB / 473.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.1269, allocations: 34.27 kB / 473.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.127, allocations: 71.42 kB / 473.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.127, allocations: 0 / 473.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.1504, allocations: 4.087 MB / 477.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.531/7.681, allocations: 3.984 kB / 477.4 MB, free: 2.754 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches