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.001243/0.001244, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.001137/0.001137, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1773/0.1773, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 63.89 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.09973, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005785/0.1056, allocations: 4.073 MB / 461.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.1071, allocations: 0.857 MB / 461.9 MB, free: 3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002488/0.1074, allocations: 7.938 kB / 461.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.1076, allocations: 43.52 kB / 462 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005816/0.1082, allocations: 175 kB / 462.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.1085, allocations: 83.89 kB / 462.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004353/0.1089, allocations: 402.5 kB / 462.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.1091, allocations: 106.3 kB / 462.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.1094, allocations: 167.3 kB / 462.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.1097, allocations: 179.3 kB / 463 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.038e-05/0.1098, allocations: 28 kB / 463.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.516e-05/0.1099, allocations: 20 kB / 463.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.11, allocations: 87.72 kB / 463.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.1101, allocations: 151.2 kB / 463.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.1104, allocations: 271 kB / 463.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1105, allocations: 4 kB / 463.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1105, allocations: 4 kB / 463.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.1105, allocations: 0 / 463.6 MB, free: 1.305 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001017/0.1115, allocations: 0.5932 MB / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1116, allocations: 19.88 kB / 464.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.766e-05/0.1116, allocations: 58.73 kB / 464.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.282e-05/0.1117, allocations: 32.56 kB / 464.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.1121, allocations: 319 kB / 464.6 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.1122, allocations: 16.81 kB / 464.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1123, allocations: 43.84 kB / 464.7 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.1127, allocations: 286.1 kB / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.1127, allocations: 0 / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.1127, allocations: 12 kB / 465 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.1128, allocations: 8 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.113, allocations: 191.7 kB / 465.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.1144, allocations: 1.276 MB / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.1147, allocations: 119.8 kB / 466.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.026e-05/0.1148, allocations: 46.62 kB / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.1148, allocations: 0 / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.1149, allocations: 42.5 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.1149, allocations: 0 / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008616/0.1157, allocations: 0.531 MB / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.1158, allocations: 102.8 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.116, allocations: 242.7 kB / 467.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.1161, allocations: 29.7 kB / 467.5 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.1162, allocations: 199.5 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.1162, allocations: 39.7 kB / 467.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.266e-05/0.1163, allocations: 45.7 kB / 467.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1164, allocations: 334.8 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.422e-05/0.1165, allocations: 39.97 kB / 468.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.1166, allocations: 138.6 kB / 468.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.1168, allocations: 183.8 kB / 468.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1169, allocations: 4 kB / 468.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000368/0.1172, allocations: 229.8 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1173, allocations: 11.98 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1173, allocations: 4 kB / 468.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001155/0.1174, allocations: 37.12 kB / 468.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.1177, allocations: 59.89 kB / 468.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1177, allocations: 4 kB / 468.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.1178, allocations: 8 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.1179, allocations: 12 kB / 468.9 MB, free: 11.56 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.000123/0.118, allocations: 150.6 kB / 469 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.433e-05/0.1181, allocations: 23.72 kB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.1183, allocations: 147.3 kB / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1183, allocations: 7.938 kB / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1183, allocations: 0 / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1184, allocations: 4 kB / 469.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.1187, allocations: 281.5 kB / 469.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.1187, allocations: 3.984 kB / 469.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.1189, allocations: 32.08 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1189, allocations: 3.938 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.1189, allocations: 0 / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1189, allocations: 15.88 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1189, allocations: 3.938 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.1192, allocations: 370.4 kB / 469.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.1193, allocations: 96.94 kB / 470 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.1193, allocations: 4 kB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.1195, allocations: 8 kB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.36e-05/0.1195, allocations: 11.98 kB / 470 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-06/0.1195, allocations: 4 kB / 470 MB, free: 10.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.1197, allocations: 170 kB / 470.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1197, allocations: 0 / 470.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.12, allocations: 48 kB / 470.2 MB, free: 10.11 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.0005528/0.1206, allocations: 0.8997 MB / 471.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003115/0.1209, allocations: 213.7 kB / 471.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1209, allocations: 0.875 kB / 471.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.791e-05/0.121, allocations: 51.98 kB / 471.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.1215, allocations: 51.44 kB / 471.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.1242, allocations: 2.624 MB / 474 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.1246, allocations: 0.7752 MB / 474.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.1247, allocations: 38.27 kB / 474.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1248, allocations: 91.98 kB / 474.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1248, allocations: 0 / 474.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1495, allocations: 4.783 MB / 479.7 MB, free: 472 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.834/8.983, allocations: 8 kB / 479.7 MB, free: 464 kB / 350.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches