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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2129/0.2129, allocations: 38.53 MB / 353.2 MB, free: 12.56 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 67.89 kB / 493.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.375, allocations: 62.47 MB / 0.5428 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006678/0.3816, allocations: 4.236 MB / 0.5469 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.3833, allocations: 0.8899 MB / 0.5478 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.3835, allocations: 14.75 kB / 0.5478 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.3837, allocations: 39.17 kB / 0.5478 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006305/0.3843, allocations: 179.6 kB / 0.548 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.3846, allocations: 81.5 kB / 0.5481 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000508/0.3851, allocations: 401.7 kB / 0.5485 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.3853, allocations: 71.2 kB / 0.5485 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004954/0.3858, allocations: 187.8 kB / 0.5487 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.3862, allocations: 193.7 kB / 0.5489 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.747e-05/0.3862, allocations: 20.25 kB / 0.5489 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.143e-05/0.3863, allocations: 24.97 kB / 0.5489 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.3864, allocations: 85.56 kB / 0.549 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.3866, allocations: 146.2 kB / 0.5492 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000438/0.387, allocations: 287.4 kB / 0.5494 GB, free: 11.31 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.387, allocations: 1.188 kB / 0.5494 GB, free: 11.31 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.387, allocations: 0 / 0.5494 GB, free: 11.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.387, allocations: 0 / 0.5494 GB, free: 11.31 MB / 398.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.001137/0.3882, allocations: 0.5356 MB / 0.55 GB, free: 10.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3882, allocations: 13.02 kB / 0.55 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.457e-05/0.3882, allocations: 6.375 kB / 0.55 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.958e-05/0.3883, allocations: 58.55 kB / 0.55 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.3884, allocations: 39.48 kB / 0.5501 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.3889, allocations: 272.1 kB / 0.5503 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.389, allocations: 20.97 kB / 0.5503 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.3891, allocations: 30.67 kB / 0.5504 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/0.3896, allocations: 302.8 kB / 0.5507 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3897, allocations: 1.375 kB / 0.5507 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.3897, allocations: 10.69 kB / 0.5507 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.3897, allocations: 5.812 kB / 0.5507 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.39, allocations: 187 kB / 0.5509 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.3919, allocations: 1.232 MB / 0.5521 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.3922, allocations: 119.1 kB / 0.5522 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.706e-05/0.3923, allocations: 44 kB / 0.5522 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.3923, allocations: 5.031 kB / 0.5522 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.3924, allocations: 32.97 kB / 0.5523 GB, free: 8.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3924, allocations: 4 kB / 0.5523 GB, free: 8.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.000959/0.3933, allocations: 465 kB / 0.5527 GB, free: 8.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.782e-05/0.3934, allocations: 108.7 kB / 0.5528 GB, free: 8.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.3937, allocations: 247.7 kB / 0.553 GB, free: 8.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.3937, allocations: 30.67 kB / 0.5531 GB, free: 8.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.3939, allocations: 201.8 kB / 0.5533 GB, free: 7.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.394, allocations: 44.3 kB / 0.5533 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-05/0.394, allocations: 40.39 kB / 0.5533 GB, free: 7.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002455/0.3943, allocations: 336.4 kB / 0.5537 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.993e-05/0.3944, allocations: 36.67 kB / 0.5537 GB, free: 7.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.3945, allocations: 129.3 kB / 0.5538 GB, free: 7.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.3948, allocations: 193.2 kB / 0.554 GB, free: 7.234 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3948, allocations: 1.156 kB / 0.554 GB, free: 7.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005477/0.3953, allocations: 242.5 kB / 0.5542 GB, free: 7.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3953, allocations: 6.781 kB / 0.5542 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3953, allocations: 4 kB / 0.5543 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.3955, allocations: 34.59 kB / 0.5543 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.3958, allocations: 59.23 kB / 0.5543 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.3958, allocations: 16.62 kB / 0.5544 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.396, allocations: 11.44 kB / 0.5544 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.396, allocations: 8.281 kB / 0.5544 GB, free: 7.027 MB / 398.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.0001735/0.3962, allocations: 147 kB / 0.5545 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.601e-05/0.3962, allocations: 26.7 kB / 0.5545 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.3965, allocations: 149 kB / 0.5547 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3965, allocations: 1.5 kB / 0.5547 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3965, allocations: 5.453 kB / 0.5547 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3965, allocations: 1.5 kB / 0.5547 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003949/0.3969, allocations: 254.6 kB / 0.5549 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3969, allocations: 0 / 0.5549 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.3971, allocations: 29.77 kB / 0.555 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3971, allocations: 1.781 kB / 0.555 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.3971, allocations: 9.75 kB / 0.555 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.3971, allocations: 10.22 kB / 0.555 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3971, allocations: 3.984 kB / 0.555 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004347/0.3975, allocations: 355.9 kB / 0.5553 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.3976, allocations: 26.45 kB / 0.5554 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/0.3976, allocations: 6.969 kB / 0.5554 GB, free: 6.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3978, allocations: 8.062 kB / 0.5554 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.926e-05/0.3978, allocations: 11.8 kB / 0.5554 GB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3978, allocations: 7.328 kB / 0.5554 GB, free: 6.176 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001707/0.398, allocations: 169.8 kB / 0.5555 GB, free: 6.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.398, allocations: 0 / 0.5555 GB, free: 6.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003605/0.3984, allocations: 44.47 kB / 0.5556 GB, free: 6.051 MB / 398.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.000745/0.3991, allocations: 0.9034 MB / 0.5565 GB, free: 5.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003237/0.3994, allocations: 122.5 kB / 0.5566 GB, free: 5.156 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3994, allocations: 0.875 kB / 0.5566 GB, free: 5.156 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.235e-05/0.3995, allocations: 50.7 kB / 0.5566 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/0.4001, allocations: 54.06 kB / 0.5567 GB, free: 5.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003448/0.4035, allocations: 2.632 MB / 0.5593 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.404, allocations: 0.7722 MB / 0.56 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.4041, allocations: 30.22 kB / 0.56 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.4043, allocations: 87.41 kB / 0.5601 GB, free: 2.02 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4043, allocations: 0 / 0.5601 GB, free: 2.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.4347, allocations: 5.106 MB / 0.5651 GB, free: 13.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.27, allocations: 11.48 kB / 0.5651 GB, free: 13.06 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000270051 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.412672246980947]