Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [: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.001092/0.001092, allocations: 184.8 kB / 8.134 MB, free: 2.199 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.25/1.25, 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.0009413/0.0009411, allocations: 90.62 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1698/0.1698, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.324e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1356, allocations: 56.32 MB / 466.3 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.372/0.5077, allocations: 97.16 MB / 0.5503 GB, free: 13.42 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.508, allocations: 87.94 kB / 0.5504 GB, free: 13.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06201/0.57, allocations: 23.52 MB / 0.5733 GB, free: 5.559 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.439e-05/0.5701, allocations: 8 kB / 0.5733 GB, free: 5.551 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001332/0.5714, allocations: 0.6668 MB / 0.574 GB, free: 4.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.5715, allocations: 12.02 kB / 0.574 GB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002023/0.5735, allocations: 219 kB / 0.5742 GB, free: 4.613 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007477/0.5743, allocations: 366.2 kB / 0.5746 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.5743, allocations: 12 kB / 0.5746 GB, free: 4.207 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.5744, allocations: 35.89 kB / 0.5746 GB, free: 4.172 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008579/0.5753, allocations: 441.8 kB / 0.575 GB, free: 3.738 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009319/0.5763, allocations: 0.562 MB / 0.5756 GB, free: 3.152 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.5763, allocations: 0 / 0.5756 GB, free: 3.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/0.5763, allocations: 0 / 0.5756 GB, free: 3.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.5765, allocations: 48.88 kB / 0.5756 GB, free: 3.105 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.5802, allocations: 2.236 MB / 0.5778 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007376/0.581, allocations: 473.5 kB / 0.5783 GB, free: 264 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.5814, allocations: 237.7 kB / 0.5785 GB, free: 20 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.5814, allocations: 7.984 kB / 0.5785 GB, free: 12 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.5815, allocations: 38.56 kB / 0.5785 GB, free: 15.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=44): time 2.134e-06/0.5815, allocations: 0 / 0.5785 GB, free: 15.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.00239/0.5839, allocations: 1.248 MB / 0.5798 GB, free: 14.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.5839, allocations: 81.11 kB / 0.5798 GB, free: 14.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.5842, allocations: 201 kB / 0.58 GB, free: 14.35 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.5842, allocations: 29.7 kB / 0.5801 GB, free: 14.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.5843, allocations: 203.9 kB / 0.5802 GB, free: 14.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.5845, allocations: 149.8 kB / 0.5804 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-05/0.5845, allocations: 0 / 0.5804 GB, free: 13.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.5847, allocations: 354.8 kB / 0.5807 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.585, allocations: 172.9 kB / 0.5809 GB, free: 13.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.5853, allocations: 277.2 kB / 0.5812 GB, free: 13.13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.5857, allocations: 229.4 kB / 0.5814 GB, free: 12.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.5857, allocations: 4 kB / 0.5814 GB, free: 12.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001212/0.5869, allocations: 0.6347 MB / 0.582 GB, free: 12.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.587, allocations: 5.406 kB / 0.582 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.587, allocations: 4 kB / 0.582 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006437/0.5876, allocations: 160.7 kB / 0.5822 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.5881, allocations: 99.81 kB / 0.5823 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003361/0.5914, allocations: 2.296 MB / 0.5845 GB, free: 9.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.5918, allocations: 11.98 kB / 0.5845 GB, free: 9.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.5918, allocations: 20 kB / 0.5845 GB, free: 9.551 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[2]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] 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 (48): * Single equations (assignments): 47 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.592, allocations: 108.9 kB / 0.5846 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.5921, allocations: 35.53 kB / 0.5847 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.5934, allocations: 0.6203 MB / 0.5853 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.5934, allocations: 4 kB / 0.5853 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.5934, allocations: 3.906 kB / 0.5853 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5934, allocations: 7.984 kB / 0.5853 GB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/0.5958, allocations: 1.321 MB / 0.5866 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.5958, allocations: 0 / 0.5866 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.5963, allocations: 83.89 kB / 0.5867 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004758/0.5968, allocations: 132.8 kB / 0.5868 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.5968, allocations: 8 kB / 0.5868 GB, free: 7.148 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/0.5998, allocations: 2.154 MB / 0.5889 GB, free: 4.879 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5998, allocations: 192 / 0.5889 GB, free: 4.879 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001672/0.6015, allocations: 0.9894 MB / 0.5899 GB, free: 3.844 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.6017, allocations: 112.7 kB / 0.59 GB, free: 3.715 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.811e-05/0.6017, allocations: 3.938 kB / 0.59 GB, free: 3.711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.602, allocations: 7.984 kB / 0.59 GB, free: 3.703 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.602, allocations: 27.97 kB / 0.59 GB, free: 3.676 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.6021, allocations: 12 kB / 0.59 GB, free: 3.664 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001783/0.6023, allocations: 161.2 kB / 0.5902 GB, free: 3.504 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007377/0.603, allocations: 124 kB / 0.5903 GB, free: 3.383 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000206/0.6032, allocations: 111.2 kB / 0.5904 GB, free: 3.266 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.6046, allocations: 0.6296 MB / 0.591 GB, free: 2.625 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6046, allocations: 0 / 0.591 GB, free: 2.625 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007189/0.6053, allocations: 398.9 kB / 0.5914 GB, free: 2.227 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.6057, allocations: 48.33 kB / 0.5914 GB, free: 2.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.6077, allocations: 0.9169 MB / 0.5923 GB, free: 1.234 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006364/0.6083, allocations: 0.9097 MB / 0.5932 GB, free: 304 kB / 426.7 MB Notification: Performance of SimCode: time 1.974e-06/0.6084, allocations: 0 / 0.5932 GB, free: 304 kB / 426.7 MB Notification: Performance of Templates: time 0.01144/0.6198, allocations: 5.437 MB / 0.5985 GB, free: 10.86 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,generator.p[1],generator.p[2],generator.phi,generator1.p[1],generator1.p[2],generator1.phi Variables in the result:constantTorque.tau_constant,constantTorque1.tau_constant,fixedLoad.P,fixedLoad.phi,fixedLoad.v_start[1],fixedLoad.v_start[2],generator.V_nom,generator.definiteReference,generator.f_nom,generator.p[1],generator.p[2],generator.phi,generator.potentialReference,generator.pp,generator.synchronous,generator1.V_nom,generator1.definiteReference,generator1.f_nom,generator1.p[1],generator1.p[2],generator1.phi,generator1.potentialReference,generator1.pp,generator1.synchronous,impedance.L,impedance.R,impedance.i_start[1],impedance.i_start[2],impedance.v_start[1],impedance.v_start[2],impedance1.L,impedance1.R,impedance1.i_start[1],impedance1.i_start[2],impedance1.v_start[1],impedance1.v_start[2],inertia.J,inertia1.J,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time