Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") [: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.001069/0.001069, allocations: 178.5 kB / 8.129 MB, free: 2.684 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.2 MB / 213.7 MB, free: 2.094 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 99.94 kB / 261.7 MB, free: 1.402 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1665/0.1665, allocations: 37.98 MB / 347.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 6.583e-06/6.602e-06, allocations: 0 / 410 MB, free: 69.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09025, allocations: 56.31 MB / 466.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2933/0.3836, allocations: 100.9 MB / 0.554 GB, free: 2.062 MB / 366.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.3839, allocations: 87.27 kB / 0.554 GB, free: 2.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 0.04413/0.428, allocations: 15.27 MB / 0.569 GB, free: 5.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.911e-05/0.4281, allocations: 12 kB / 0.569 GB, free: 5.086 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001256/0.4293, allocations: 0.7706 MB / 0.5697 GB, free: 4.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.4294, allocations: 8.031 kB / 0.5697 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004868/0.4299, allocations: 94.44 kB / 0.5698 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.4315, allocations: 0.7121 MB / 0.5705 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.4315, allocations: 12 kB / 0.5705 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4316, allocations: 24 kB / 0.5705 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009107/0.4325, allocations: 0.621 MB / 0.5712 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.4336, allocations: 0.7999 MB / 0.5719 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.4336, allocations: 7.938 kB / 0.5719 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.4337, allocations: 0 / 0.5719 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/0.4339, allocations: 53.56 kB / 0.572 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004741/0.4386, allocations: 2.629 MB / 0.5746 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007444/0.4394, allocations: 0.6047 MB / 0.5752 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.4399, allocations: 0.4957 MB / 0.5756 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.349e-05/0.4399, allocations: 7.984 kB / 0.5756 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.44, allocations: 33.25 kB / 0.5757 GB, free: 15.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=60): time 3.737e-06/0.44, allocations: 4 kB / 0.5757 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.002963/0.443, allocations: 1.679 MB / 0.5773 GB, free: 13.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.941e-05/0.4431, allocations: 145.7 kB / 0.5775 GB, free: 13.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.4433, allocations: 236.4 kB / 0.5777 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.662e-05/0.4433, allocations: 25.7 kB / 0.5777 GB, free: 13.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.796e-05/0.4434, allocations: 217.7 kB / 0.5779 GB, free: 13.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.4436, allocations: 198.2 kB / 0.5781 GB, free: 13.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.4436, allocations: 3.938 kB / 0.5781 GB, free: 13.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4438, allocations: 358.6 kB / 0.5784 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004293/0.4442, allocations: 383.3 kB / 0.5788 GB, free: 12.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.4447, allocations: 494.6 kB / 0.5793 GB, free: 12.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009054/0.4456, allocations: 0.5518 MB / 0.5798 GB, free: 11.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4456, allocations: 0 / 0.5798 GB, free: 11.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001652/0.4473, allocations: 1.117 MB / 0.5809 GB, free: 10.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.4473, allocations: 8 kB / 0.5809 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.4473, allocations: 4 kB / 0.5809 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001675/0.4475, allocations: 40.38 kB / 0.581 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.4479, allocations: 83.45 kB / 0.581 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.449, allocations: 1.362 MB / 0.5824 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.4493, allocations: 20.02 kB / 0.5824 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.325e-05/0.4494, allocations: 23.86 kB / 0.5824 GB, free: 9.188 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3],system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000204/0.4496, allocations: 190 kB / 0.5826 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.4497, allocations: 47.42 kB / 0.5826 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/0.4515, allocations: 1.178 MB / 0.5838 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.794e-05/0.4516, allocations: 19.89 kB / 0.5838 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4516, allocations: 4 kB / 0.5838 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.4516, allocations: 3.984 kB / 0.5838 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.4543, allocations: 1.816 MB / 0.5856 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.4543, allocations: 4 kB / 0.5856 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002939/0.4546, allocations: 51.91 kB / 0.5856 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001039/0.4547, allocations: 43.45 kB / 0.5857 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.4548, allocations: 7.906 kB / 0.5857 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.4558, allocations: 1.362 MB / 0.587 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.4558, allocations: 7.938 kB / 0.587 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001814/0.4577, allocations: 1.31 MB / 0.5883 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.458, allocations: 195 kB / 0.5885 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.888e-05/0.4581, allocations: 11.25 kB / 0.5885 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.4584, allocations: 19.97 kB / 0.5885 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4585, allocations: 37.7 kB / 0.5886 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/0.4586, allocations: 26.55 kB / 0.5886 GB, free: 3.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 0.0001681/0.4587, allocations: 178.3 kB / 0.5888 GB, free: 3.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005877/0.4593, allocations: 147.9 kB / 0.5889 GB, free: 3.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003318/0.4597, allocations: 149.9 kB / 0.589 GB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002261/0.462, allocations: 1.162 MB / 0.5902 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.462, allocations: 0 / 0.5902 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.4631, allocations: 0.954 MB / 0.5911 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.4635, allocations: 54.78 kB / 0.5912 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.4654, allocations: 1.225 MB / 0.5924 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006434/0.4661, allocations: 0.9517 MB / 0.5933 GB, free: 15.71 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4661, allocations: 0 / 0.5933 GB, free: 15.71 MB / 414.1 MB Notification: Performance of Templates: time 0.01136/0.4775, allocations: 6.686 MB / 0.5998 GB, free: 9.074 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches