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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009934/0.0009933, allocations: 176.4 kB / 8.347 MB, free: 0.7266 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.829/1.829, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008184/0.0008183, allocations: 90.17 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1905/0.1905, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.901e-05/1.911e-05, allocations: 7.984 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1425, allocations: 56.32 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4789/0.6214, allocations: 97.19 MB / 0.5509 GB, free: 13.73 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.6219, allocations: 87.94 kB / 0.5509 GB, free: 13.64 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05711/0.679, allocations: 23.85 MB / 0.5742 GB, free: 5.543 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.679, allocations: 0 / 0.5742 GB, free: 5.543 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.6791, allocations: 16 kB / 0.5743 GB, free: 5.527 MB / 411.1 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.001197/0.6803, allocations: 0.6519 MB / 0.5749 GB, free: 4.832 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.6803, allocations: 15.97 kB / 0.5749 GB, free: 4.816 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001781/0.6821, allocations: 211.2 kB / 0.5751 GB, free: 4.609 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/0.6827, allocations: 374.4 kB / 0.5755 GB, free: 4.203 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.6827, allocations: 12 kB / 0.5755 GB, free: 4.191 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.52e-05/0.6828, allocations: 24 kB / 0.5755 GB, free: 4.168 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006382/0.6834, allocations: 434.4 kB / 0.5759 GB, free: 3.746 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007936/0.6842, allocations: 0.5503 MB / 0.5765 GB, free: 3.172 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.6843, allocations: 7.953 kB / 0.5765 GB, free: 3.164 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.962e-05/0.6843, allocations: 0 / 0.5765 GB, free: 3.164 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001284/0.6845, allocations: 41.28 kB / 0.5765 GB, free: 3.125 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002898/0.6874, allocations: 2.218 MB / 0.5787 GB, free: 0.793 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006049/0.688, allocations: 471.2 kB / 0.5791 GB, free: 300 kB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.6883, allocations: 233.7 kB / 0.5793 GB, free: 60 kB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.6883, allocations: 11.98 kB / 0.5794 GB, free: 48 kB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/0.6884, allocations: 42.5 kB / 0.5794 GB, free: 16 MB / 427.1 MB Notification: Performance of pre-optimization done (n=44): time 1.583e-06/0.6884, allocations: 0 / 0.5794 GB, free: 16 MB / 427.1 MB Notification: Performance of matching and sorting (n=45): time 0.001953/0.6904, allocations: 1.22 MB / 0.5806 GB, free: 14.71 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.6904, allocations: 81.11 kB / 0.5807 GB, free: 14.62 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.6906, allocations: 202 kB / 0.5809 GB, free: 14.42 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.6906, allocations: 25.7 kB / 0.5809 GB, free: 14.39 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.6908, allocations: 228 kB / 0.5811 GB, free: 14.16 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.6909, allocations: 157.7 kB / 0.5812 GB, free: 14 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/0.6909, allocations: 0 / 0.5812 GB, free: 14 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.691, allocations: 346.7 kB / 0.5816 GB, free: 13.65 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.6913, allocations: 177.1 kB / 0.5817 GB, free: 13.48 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.6916, allocations: 269.7 kB / 0.582 GB, free: 13.17 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.6919, allocations: 217.4 kB / 0.5822 GB, free: 12.96 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.6919, allocations: 8 kB / 0.5822 GB, free: 12.95 MB / 427.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001058/0.6929, allocations: 0.6151 MB / 0.5828 GB, free: 12.33 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.693, allocations: 8 kB / 0.5828 GB, free: 12.32 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.693, allocations: 7.984 kB / 0.5828 GB, free: 12.31 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005371/0.6935, allocations: 162.9 kB / 0.583 GB, free: 12.15 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.6939, allocations: 99.83 kB / 0.5831 GB, free: 12.05 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002902/0.6969, allocations: 2.381 MB / 0.5854 GB, free: 9.562 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.6971, allocations: 24.02 kB / 0.5854 GB, free: 9.539 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.6971, allocations: 20 kB / 0.5854 GB, free: 9.52 MB / 427.1 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.0001529/0.6973, allocations: 117 kB / 0.5856 GB, free: 9.398 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-05/0.6974, allocations: 35.58 kB / 0.5856 GB, free: 9.363 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.6985, allocations: 0.598 MB / 0.5862 GB, free: 8.754 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.6985, allocations: 8 kB / 0.5862 GB, free: 8.746 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-06/0.6985, allocations: 0 / 0.5862 GB, free: 8.746 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.6985, allocations: 0 / 0.5862 GB, free: 8.746 MB / 427.1 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.7005, allocations: 1.296 MB / 0.5875 GB, free: 7.383 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.7005, allocations: 8.062 kB / 0.5875 GB, free: 7.375 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003926/0.7009, allocations: 87.88 kB / 0.5875 GB, free: 7.289 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004061/0.7014, allocations: 124.7 kB / 0.5877 GB, free: 7.164 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.7014, allocations: 4 kB / 0.5877 GB, free: 7.16 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/0.7038, allocations: 2.212 MB / 0.5898 GB, free: 4.828 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.7039, allocations: 0 / 0.5898 GB, free: 4.828 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.7052, allocations: 0.9663 MB / 0.5908 GB, free: 3.816 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.814e-05/0.7053, allocations: 112.8 kB / 0.5909 GB, free: 3.688 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.7054, allocations: 4 kB / 0.5909 GB, free: 3.684 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000196/0.7056, allocations: 7.984 kB / 0.5909 GB, free: 3.676 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.7056, allocations: 35.95 kB / 0.5909 GB, free: 3.641 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.7057, allocations: 8 kB / 0.5909 GB, free: 3.633 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.7058, allocations: 166 kB / 0.5911 GB, free: 3.473 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7058, allocations: 0 / 0.5911 GB, free: 3.473 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005745/0.7064, allocations: 132 kB / 0.5912 GB, free: 3.344 MB / 427.1 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.0001611/0.7066, allocations: 120.2 kB / 0.5913 GB, free: 3.223 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.7077, allocations: 0.6502 MB / 0.592 GB, free: 2.562 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.7077, allocations: 4 kB / 0.592 GB, free: 2.559 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006362/0.7084, allocations: 414.2 kB / 0.5924 GB, free: 2.145 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.7087, allocations: 41.06 kB / 0.5924 GB, free: 2.105 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.7102, allocations: 0.9029 MB / 0.5933 GB, free: 1.172 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.7107, allocations: 0.8829 MB / 0.5941 GB, free: 264 kB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.7109, allocations: 71.23 kB / 0.5942 GB, free: 192 kB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.481e-05/0.711, allocations: 31.42 kB / 0.5942 GB, free: 160 kB / 427.1 MB Notification: Performance of SimCode: time 2.5e-07/0.711, allocations: 4 kB / 0.5942 GB, free: 156 kB / 427.1 MB Notification: Performance of Templates: time 0.009075/0.72, allocations: 4.991 MB / 0.5991 GB, free: 11.16 MB / 443.1 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