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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7406,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 185.2 kB / 8.135 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008826/0.0008827, allocations: 83.3 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1621/0.1621, allocations: 37.98 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.213e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09757, allocations: 56.31 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3141/0.4117, allocations: 93.17 MB / 0.5464 GB, free: 1.402 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.412, allocations: 83.95 kB / 0.5465 GB, free: 1.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.01846/0.4304, allocations: 6.103 MB / 0.5524 GB, free: 11.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.929e-05/0.4305, allocations: 8 kB / 0.5524 GB, free: 11.15 MB / 394.7 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.0008827/0.4314, allocations: 0.5269 MB / 0.5529 GB, free: 10.58 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4315, allocations: 8.031 kB / 0.5529 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.711e-05/0.4316, allocations: 36.28 kB / 0.553 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.4331, allocations: 0.6537 MB / 0.5536 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.4331, allocations: 8 kB / 0.5536 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.4333, allocations: 27.97 kB / 0.5537 GB, free: 9.805 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000326/0.4336, allocations: 164.8 kB / 0.5538 GB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.434, allocations: 261 kB / 0.5541 GB, free: 9.355 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.434, allocations: 0 / 0.5541 GB, free: 9.355 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.4341, allocations: 4 kB / 0.5541 GB, free: 9.352 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.4341, allocations: 7.938 kB / 0.5541 GB, free: 9.344 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.4357, allocations: 1.24 MB / 0.5553 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002873/0.436, allocations: 107.8 kB / 0.5554 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.39e-05/0.436, allocations: 50.62 kB / 0.5554 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.4361, allocations: 0 / 0.5554 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.4361, allocations: 42.44 kB / 0.5555 GB, free: 7.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.4361, allocations: 0 / 0.5555 GB, free: 7.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008553/0.437, allocations: 487.8 kB / 0.5559 GB, free: 7.246 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.437, allocations: 110.8 kB / 0.556 GB, free: 7.113 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.4372, allocations: 197 kB / 0.5562 GB, free: 6.914 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.375e-05/0.4373, allocations: 25.7 kB / 0.5563 GB, free: 6.883 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.849e-05/0.4374, allocations: 167.7 kB / 0.5564 GB, free: 6.715 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.4374, allocations: 43.39 kB / 0.5565 GB, free: 6.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.4374, allocations: 3.938 kB / 0.5565 GB, free: 6.668 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4376, allocations: 334.8 kB / 0.5568 GB, free: 6.332 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.287e-05/0.4376, allocations: 36.03 kB / 0.5568 GB, free: 6.297 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.4378, allocations: 120.4 kB / 0.5569 GB, free: 6.137 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.378e-05/0.4379, allocations: 55.91 kB / 0.557 GB, free: 6.082 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4379, allocations: 0 / 0.557 GB, free: 6.082 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004438/0.4383, allocations: 205.9 kB / 0.5572 GB, free: 5.871 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.4383, allocations: 9.406 kB / 0.5572 GB, free: 5.863 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.4384, allocations: 4 kB / 0.5572 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001275/0.4385, allocations: 33.19 kB / 0.5572 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.4389, allocations: 59.94 kB / 0.5573 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.4389, allocations: 11.94 kB / 0.5573 GB, free: 5.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.439, allocations: 0 / 0.5573 GB, free: 5.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.4391, allocations: 16 kB / 0.5573 GB, free: 5.738 MB / 394.7 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.439e-05/0.4392, allocations: 108.9 kB / 0.5574 GB, free: 5.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.4392, allocations: 23.72 kB / 0.5574 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.4395, allocations: 139.3 kB / 0.5576 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.4395, allocations: 0 / 0.5576 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.4395, allocations: 4 kB / 0.5576 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.4395, allocations: 3.984 kB / 0.5576 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.4399, allocations: 246.2 kB / 0.5578 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4399, allocations: 0 / 0.5578 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.4401, allocations: 40.02 kB / 0.5578 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4401, allocations: 7.938 kB / 0.5579 GB, free: 5.125 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.4401, allocations: 3.984 kB / 0.5579 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.4401, allocations: 4 kB / 0.5579 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4401, allocations: 4 kB / 0.5579 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003833/0.4405, allocations: 382.6 kB / 0.5582 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.569e-05/0.4406, allocations: 96.81 kB / 0.5583 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.4406, allocations: 12 kB / 0.5583 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.4408, allocations: 0 / 0.5583 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.4408, allocations: 15.89 kB / 0.5584 GB, free: 4.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.4408, allocations: 4 kB / 0.5584 GB, free: 4.562 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001315/0.441, allocations: 157.2 kB / 0.5585 GB, free: 4.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003427/0.4413, allocations: 40 kB / 0.5585 GB, free: 4.371 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001497/0.4415, allocations: 99.38 kB / 0.5586 GB, free: 4.266 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.4418, allocations: 209.6 kB / 0.5588 GB, free: 4.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4418, allocations: 4 kB / 0.5588 GB, free: 4.035 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.746e-05/0.4419, allocations: 47.92 kB / 0.5589 GB, free: 3.988 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.4423, allocations: 49.36 kB / 0.5589 GB, free: 3.941 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008394/0.4432, allocations: 423.8 kB / 0.5593 GB, free: 3.492 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/0.4436, allocations: 0.8058 MB / 0.5601 GB, free: 2.664 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4436, allocations: 0 / 0.5601 GB, free: 2.664 MB / 394.7 MB Notification: Performance of Templates: time 0.005206/0.4488, allocations: 2.069 MB / 0.5621 GB, free: 0.6055 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins/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