Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") [: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.001493/0.001493, allocations: 182.9 kB / 8.133 MB, free: 2.09 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.263/1.263, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008582/0.0008582, allocations: 84.23 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.168/0.168, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.121e-06/6.302e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.09883, allocations: 56.32 MB / 466.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2682/0.3671, allocations: 94.06 MB / 0.5473 GB, free: 0.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.3674, allocations: 91.94 kB / 0.5473 GB, free: 420 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.01819/0.3856, allocations: 6.253 MB / 0.5535 GB, free: 10.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.3856, allocations: 12 kB / 0.5535 GB, free: 10.09 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.0007326/0.3864, allocations: 0.5272 MB / 0.554 GB, free: 9.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3864, allocations: 8.031 kB / 0.554 GB, free: 9.512 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.462e-05/0.3865, allocations: 39.53 kB / 0.554 GB, free: 9.473 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001817/0.3883, allocations: 0.7651 MB / 0.5548 GB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.3884, allocations: 15.97 kB / 0.5548 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.3884, allocations: 16 kB / 0.5548 GB, free: 8.637 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002867/0.3887, allocations: 156.8 kB / 0.555 GB, free: 8.484 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.3891, allocations: 254.7 kB / 0.5552 GB, free: 8.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3891, allocations: 11.94 kB / 0.5552 GB, free: 8.188 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.464e-05/0.3891, allocations: 7.891 kB / 0.5552 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3891, allocations: 4 kB / 0.5552 GB, free: 8.176 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.3904, allocations: 1.177 MB / 0.5564 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.3907, allocations: 89.27 kB / 0.5565 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.272e-05/0.3908, allocations: 45.95 kB / 0.5565 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.3908, allocations: 11.88 kB / 0.5565 GB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.3908, allocations: 30.56 kB / 0.5565 GB, free: 6.715 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3908, allocations: 0 / 0.5565 GB, free: 6.715 MB / 394.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006789/0.3915, allocations: 432.4 kB / 0.557 GB, free: 6.238 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.3916, allocations: 89.12 kB / 0.557 GB, free: 6.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.3918, allocations: 201 kB / 0.5572 GB, free: 5.926 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3918, allocations: 25.7 kB / 0.5573 GB, free: 5.895 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.3919, allocations: 175.6 kB / 0.5574 GB, free: 5.719 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.3919, allocations: 35.56 kB / 0.5575 GB, free: 5.684 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.3919, allocations: 0 / 0.5575 GB, free: 5.684 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3921, allocations: 334.7 kB / 0.5578 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.764e-05/0.3921, allocations: 31.98 kB / 0.5578 GB, free: 5.316 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.3922, allocations: 120.9 kB / 0.5579 GB, free: 5.152 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.693e-05/0.3923, allocations: 51.92 kB / 0.558 GB, free: 5.102 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3923, allocations: 0 / 0.558 GB, free: 5.102 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002646/0.3926, allocations: 185.5 kB / 0.5581 GB, free: 4.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.3926, allocations: 4 kB / 0.5581 GB, free: 4.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3926, allocations: 4 kB / 0.5582 GB, free: 4.906 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3927, allocations: 4 kB / 0.5582 GB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.3928, allocations: 44.02 kB / 0.5582 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.3929, allocations: 12.36 kB / 0.5582 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.393, allocations: 12 kB / 0.5582 GB, free: 4.836 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.393, allocations: 8 kB / 0.5582 GB, free: 4.828 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.469e-05/0.3931, allocations: 116.8 kB / 0.5583 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.3932, allocations: 19.72 kB / 0.5584 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.3934, allocations: 127.2 kB / 0.5585 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3934, allocations: 4 kB / 0.5585 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.3934, allocations: 0 / 0.5585 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3934, allocations: 4 kB / 0.5585 GB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004629/0.3939, allocations: 431.8 kB / 0.5589 GB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3939, allocations: 4 kB / 0.5589 GB, free: 4.078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.3941, allocations: 23.92 kB / 0.5589 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3941, allocations: 4 kB / 0.5589 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.3941, allocations: 0 / 0.5589 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3941, allocations: 0 / 0.5589 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3941, allocations: 4 kB / 0.5589 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000312/0.3944, allocations: 292.3 kB / 0.5592 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.3945, allocations: 96.83 kB / 0.5593 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.3945, allocations: 0 / 0.5593 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.3946, allocations: 3.984 kB / 0.5593 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.552e-05/0.3947, allocations: 19.89 kB / 0.5593 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.3947, allocations: 4 kB / 0.5593 GB, free: 3.586 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000128/0.3948, allocations: 161.2 kB / 0.5595 GB, free: 3.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003076/0.3951, allocations: 40 kB / 0.5595 GB, free: 3.391 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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.0001576/0.3953, allocations: 103.4 kB / 0.5596 GB, free: 3.277 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001747/0.3955, allocations: 93.67 kB / 0.5597 GB, free: 3.188 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3955, allocations: 192 / 0.5597 GB, free: 3.188 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.257e-05/0.3956, allocations: 47.94 kB / 0.5598 GB, free: 3.141 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.3959, allocations: 49.19 kB / 0.5598 GB, free: 3.094 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006642/0.3966, allocations: 362.3 kB / 0.5601 GB, free: 2.707 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.397, allocations: 0.8006 MB / 0.5609 GB, free: 1.883 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.397, allocations: 0 / 0.5609 GB, free: 1.883 MB / 394.7 MB Notification: Performance of Templates: time 0.006479/0.4035, allocations: 1.873 MB / 0.5628 GB, free: 16 kB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches