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.00133/0.00133, allocations: 172.2 kB / 17.39 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.4 MB / 223.5 MB, free: 9.027 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.0008819/0.0008819, allocations: 89.41 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1787/0.1787, allocations: 38.08 MB / 358.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 16 kB / 425.3 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3054, allocations: 56.31 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4397, allocations: 97.98 MB / 0.566 GB, free: 4.258 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.4401, allocations: 95.8 kB / 0.5661 GB, free: 4.168 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05632/0.4964, allocations: 24.12 MB / 0.5896 GB, free: 11.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4964, allocations: 0 / 0.5896 GB, free: 11.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.768e-05/0.4965, allocations: 12 kB / 0.5896 GB, free: 11.76 MB / 426.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.001199/0.4977, allocations: 0.6948 MB / 0.5903 GB, free: 11.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.4977, allocations: 16.03 kB / 0.5903 GB, free: 11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.4993, allocations: 212.1 kB / 0.5905 GB, free: 10.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005296/0.4999, allocations: 383.2 kB / 0.5909 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.4999, allocations: 37.36 kB / 0.5909 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.35e-05/0.5, allocations: 40.28 kB / 0.591 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009282/0.501, allocations: 0.6151 MB / 0.5916 GB, free: 9.664 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.501, allocations: 192 / 0.5916 GB, free: 9.664 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.875e-05/0.501, allocations: 23.92 kB / 0.5916 GB, free: 9.641 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/0.5012, allocations: 48.95 kB / 0.5916 GB, free: 9.594 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008625/0.502, allocations: 0.5854 MB / 0.5922 GB, free: 9.008 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00313/0.5052, allocations: 2.272 MB / 0.5944 GB, free: 6.609 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/0.5058, allocations: 474.6 kB / 0.5949 GB, free: 6.109 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003178/0.5062, allocations: 233.7 kB / 0.5951 GB, free: 5.875 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.5062, allocations: 7.984 kB / 0.5951 GB, free: 5.867 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.5062, allocations: 42.56 kB / 0.5951 GB, free: 5.816 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 2.746e-06/0.5063, allocations: 7.922 kB / 0.5952 GB, free: 5.809 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.003163/0.5094, allocations: 1.67 MB / 0.5968 GB, free: 4.062 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.5095, allocations: 89.17 kB / 0.5969 GB, free: 3.957 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.5098, allocations: 282.9 kB / 0.5971 GB, free: 3.672 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.5098, allocations: 29.7 kB / 0.5972 GB, free: 3.637 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.5099, allocations: 232 kB / 0.5974 GB, free: 3.406 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.51, allocations: 145.8 kB / 0.5975 GB, free: 3.262 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.5101, allocations: 12 kB / 0.5975 GB, free: 3.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.5102, allocations: 350.7 kB / 0.5979 GB, free: 2.898 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.5105, allocations: 173 kB / 0.598 GB, free: 2.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.5108, allocations: 282.4 kB / 0.5983 GB, free: 2.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006127/0.5114, allocations: 492.6 kB / 0.5988 GB, free: 1.883 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.5114, allocations: 3.938 kB / 0.5988 GB, free: 1.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001075/0.5125, allocations: 0.6535 MB / 0.5994 GB, free: 1.215 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.5125, allocations: 14.28 kB / 0.5994 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5125, allocations: 4 kB / 0.5994 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005343/0.5131, allocations: 165.1 kB / 0.5996 GB, free: 1.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.5135, allocations: 103.8 kB / 0.5997 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003191/0.5167, allocations: 2.514 MB / 0.6021 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003085/0.517, allocations: 23.92 kB / 0.6022 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.517, allocations: 27.92 kB / 0.6022 GB, free: 14.24 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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.000246/0.5173, allocations: 201.6 kB / 0.6024 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.439e-05/0.5174, allocations: 35.61 kB / 0.6024 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.5185, allocations: 0.61 MB / 0.603 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.5185, allocations: 4 kB / 0.603 GB, free: 13.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.5185, allocations: 7.984 kB / 0.603 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.5185, allocations: 4 kB / 0.603 GB, free: 13.36 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002112/0.5206, allocations: 1.347 MB / 0.6043 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5206, allocations: 4 kB / 0.6044 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003684/0.521, allocations: 79.89 kB / 0.6044 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004221/0.5214, allocations: 132.8 kB / 0.6046 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.5215, allocations: 16.09 kB / 0.6046 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/0.5241, allocations: 2.303 MB / 0.6068 GB, free: 9.266 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.5241, allocations: 4.031 kB / 0.6068 GB, free: 9.262 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.5255, allocations: 0.9289 MB / 0.6077 GB, free: 8.305 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.183e-05/0.5256, allocations: 116.6 kB / 0.6078 GB, free: 8.172 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.465e-05/0.5256, allocations: 8 kB / 0.6079 GB, free: 8.164 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.5258, allocations: 16.03 kB / 0.6079 GB, free: 8.148 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.5259, allocations: 31.95 kB / 0.6079 GB, free: 8.117 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.5259, allocations: 12.19 kB / 0.6079 GB, free: 8.105 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001867/0.5261, allocations: 197.9 kB / 0.6081 GB, free: 7.914 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5261, allocations: 7.938 kB / 0.6081 GB, free: 7.906 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005879/0.5267, allocations: 152 kB / 0.6082 GB, free: 7.758 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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.0001511/0.5269, allocations: 123.2 kB / 0.6084 GB, free: 7.629 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.528, allocations: 0.6655 MB / 0.609 GB, free: 6.949 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.528, allocations: 0 / 0.609 GB, free: 6.949 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.5287, allocations: 418.8 kB / 0.6094 GB, free: 6.527 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.5292, allocations: 65.67 kB / 0.6095 GB, free: 6.465 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.531, allocations: 1.356 MB / 0.6108 GB, free: 5.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.5314, allocations: 0.871 MB / 0.6117 GB, free: 4.176 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002109/0.5316, allocations: 71.22 kB / 0.6117 GB, free: 4.105 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.5317, allocations: 31.44 kB / 0.6118 GB, free: 4.074 MB / 442.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5317, allocations: 3.938 kB / 0.6118 GB, free: 4.07 MB / 442.7 MB Notification: Performance of Templates: time 0.008996/0.5407, allocations: 5.129 MB / 0.6168 GB, free: 14.94 MB / 458.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/jenkins1/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.flange.tau,constantTorque.tau,constantTorque.tau_constant,constantTorque1.flange.tau,constantTorque1.tau,constantTorque1.tau_constant,fixedLoad.P,fixedLoad.p[1],fixedLoad.phi,fixedLoad.v_start[1],fixedLoad.v_start[2],generator.V,generator.V_nom,generator.definiteReference,generator.f_nom,generator.p[1],generator.p[2],generator.phi,generator.potentialReference,generator.pp,generator.synchronous,generator.terminal.v[1],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.terminal_p.v[1],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,inertia.flange_a.tau,inertia1.J,inertia1.flange_a.tau,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