Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.0009024/0.0009024, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.001097/0.001097, allocations: 177 kB / 17.56 MB, free: 6.18 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.208/1.208, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1597/0.1597, allocations: 38.1 MB / 330.8 MB, free: 8.551 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002578, allocations: 8.688 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.09753, allocations: 59.17 MB / 460 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004368/0.1019, allocations: 4.144 MB / 464.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1032, allocations: 0.9701 MB / 465.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.1033, allocations: 15.88 kB / 465.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1035, allocations: 31.7 kB / 465.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003264/0.1038, allocations: 147.3 kB / 465.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.104, allocations: 71.92 kB / 465.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004533/0.1045, allocations: 0.518 MB / 465.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.1046, allocations: 97.67 kB / 466 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.1048, allocations: 155.2 kB / 466.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002681/0.1051, allocations: 171.3 kB / 466.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.819e-05/0.1052, allocations: 12 kB / 466.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.287e-05/0.1052, allocations: 12 kB / 466.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.828e-05/0.1053, allocations: 75.72 kB / 466.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.1054, allocations: 164.8 kB / 466.5 MB, free: 376 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.1057, allocations: 262.9 kB / 466.8 MB, free: 112 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1057, allocations: 4 kB / 466.8 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1057, allocations: 4 kB / 466.8 MB, free: 104 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.1057, allocations: 0 / 466.8 MB, free: 104 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008039/0.1065, allocations: 0.5427 MB / 467.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.1065, allocations: 11.97 kB / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.506e-05/0.1066, allocations: 58.73 kB / 467.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.029e-05/0.1066, allocations: 32.56 kB / 467.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.1071, allocations: 330.9 kB / 467.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.1071, allocations: 12.81 kB / 467.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.1072, allocations: 39.92 kB / 467.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.1076, allocations: 290 kB / 468.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1076, allocations: 0 / 468.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.1077, allocations: 8 kB / 468.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1077, allocations: 7.938 kB / 468.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002777/0.108, allocations: 191.8 kB / 468.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.1093, allocations: 1.28 MB / 469.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.1095, allocations: 119.8 kB / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.467e-05/0.1096, allocations: 42.64 kB / 469.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.1096, allocations: 8 kB / 469.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.1097, allocations: 38.48 kB / 469.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.1097, allocations: 0 / 469.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007823/0.1105, allocations: 0.5193 MB / 470.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.1105, allocations: 111.1 kB / 470.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.1107, allocations: 242.7 kB / 470.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.1108, allocations: 29.7 kB / 470.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.1109, allocations: 203.5 kB / 470.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.1109, allocations: 39.45 kB / 470.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.1109, allocations: 21.72 kB / 471 MB, free: 11.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.111, allocations: 334.8 kB / 471.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.784e-05/0.1111, allocations: 35.98 kB / 471.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.1113, allocations: 143.8 kB / 471.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.1115, allocations: 187.8 kB / 471.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1115, allocations: 0 / 471.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003609/0.1119, allocations: 241.9 kB / 471.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1119, allocations: 4 kB / 471.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.1119, allocations: 4 kB / 471.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001135/0.112, allocations: 28.78 kB / 471.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.1123, allocations: 63.88 kB / 472 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1123, allocations: 4 kB / 472 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.1124, allocations: 12.38 kB / 472 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1125, allocations: 19.94 kB / 472 MB, free: 10.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.000127/0.1126, allocations: 153.7 kB / 472.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.642e-05/0.1127, allocations: 23.72 kB / 472.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.1129, allocations: 147.2 kB / 472.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1129, allocations: 3.938 kB / 472.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1129, allocations: 4 kB / 472.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1129, allocations: 0 / 472.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.1133, allocations: 285.5 kB / 472.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1133, allocations: 0 / 472.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.1134, allocations: 27.98 kB / 472.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1134, allocations: 0 / 472.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.1135, allocations: 11.98 kB / 472.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1135, allocations: 3.938 kB / 472.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1135, allocations: 3.938 kB / 472.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.1138, allocations: 365.9 kB / 473 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.1139, allocations: 96.86 kB / 473.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.1139, allocations: 3.984 kB / 473.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.114, allocations: 11.94 kB / 473.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.09e-05/0.1141, allocations: 4 kB / 473.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.1141, allocations: 7.984 kB / 473.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.1142, allocations: 170 kB / 473.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1142, allocations: 0 / 473.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.1146, allocations: 48.06 kB / 473.3 MB, free: 8.973 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0005247/0.1151, allocations: 0.8919 MB / 474.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002829/0.1154, allocations: 221.7 kB / 474.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1154, allocations: 0 / 474.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.53e-05/0.1155, allocations: 47.92 kB / 474.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.116, allocations: 49.47 kB / 474.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.1185, allocations: 2.794 MB / 477.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.1188, allocations: 0.7716 MB / 478.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.119, allocations: 30.28 kB / 478.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1191, allocations: 87.39 kB / 478.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1191, allocations: 0 / 478.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2531/0.3722, allocations: 4.497 MB / 482.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/0.3724, allocations: 226.2 kB / 482.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.26, allocations: 0 / 482.9 MB, free: 15.26 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches