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.001524/0.001524, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.549/1.549, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0009201/0.00092, allocations: 99.2 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1692/0.1692, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.0003228, allocations: 11.98 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3523, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.5027, allocations: 97.96 MB / 0.5647 GB, free: 4.449 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.5031, allocations: 87.95 kB / 0.5648 GB, free: 4.363 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06096/0.564, allocations: 24.09 MB / 0.5883 GB, free: 12.01 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5641, allocations: 0 / 0.5883 GB, free: 12.01 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.34e-05/0.5641, allocations: 12 kB / 0.5883 GB, free: 12 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.001422/0.5656, allocations: 0.6947 MB / 0.589 GB, free: 11.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.5656, allocations: 12.03 kB / 0.589 GB, free: 11.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.5674, allocations: 215.2 kB / 0.5892 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000654/0.5681, allocations: 374 kB / 0.5896 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.098e-05/0.5681, allocations: 29 kB / 0.5896 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.5682, allocations: 51.92 kB / 0.5897 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.5692, allocations: 0.6108 MB / 0.5903 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.5693, allocations: 0 / 0.5903 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.5693, allocations: 19.95 kB / 0.5903 GB, free: 9.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.5695, allocations: 56.88 kB / 0.5903 GB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009532/0.5704, allocations: 0.5855 MB / 0.5909 GB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003483/0.5739, allocations: 2.272 MB / 0.5931 GB, free: 6.852 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007238/0.5747, allocations: 475 kB / 0.5936 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.5747, allocations: 12 kB / 0.5936 GB, free: 6.336 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.5748, allocations: 38.56 kB / 0.5936 GB, free: 6.289 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 3.656e-06/0.5748, allocations: 0 / 0.5936 GB, free: 6.289 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.003553/0.5784, allocations: 1.662 MB / 0.5952 GB, free: 4.551 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/0.5784, allocations: 84.89 kB / 0.5953 GB, free: 4.449 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002818/0.5787, allocations: 254.2 kB / 0.5956 GB, free: 4.195 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.5788, allocations: 33.7 kB / 0.5956 GB, free: 4.156 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.579, allocations: 232 kB / 0.5958 GB, free: 3.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.5791, allocations: 149.8 kB / 0.596 GB, free: 3.773 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.5791, allocations: 12 kB / 0.596 GB, free: 3.762 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.5793, allocations: 346.8 kB / 0.5963 GB, free: 3.414 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.5796, allocations: 169 kB / 0.5965 GB, free: 3.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.58, allocations: 282.4 kB / 0.5967 GB, free: 2.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.5803, allocations: 215.9 kB / 0.5969 GB, free: 2.719 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5803, allocations: 0 / 0.5969 GB, free: 2.719 MB / 426.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001141/0.5815, allocations: 0.6574 MB / 0.5976 GB, free: 2.051 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.5815, allocations: 7.953 kB / 0.5976 GB, free: 2.043 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.5815, allocations: 4 kB / 0.5976 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006016/0.5821, allocations: 169.2 kB / 0.5978 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.5825, allocations: 91.88 kB / 0.5978 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003326/0.5858, allocations: 2.567 MB / 0.6004 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.5862, allocations: 27.97 kB / 0.6004 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.5862, allocations: 16 kB / 0.6004 GB, free: 15.04 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.000264/0.5865, allocations: 202.2 kB / 0.6006 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-05/0.5866, allocations: 43.7 kB / 0.6006 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.5877, allocations: 0.6138 MB / 0.6012 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.5877, allocations: 7.953 kB / 0.6012 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.5877, allocations: 0 / 0.6012 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.5877, allocations: 7.984 kB / 0.6012 GB, free: 14.14 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.002216/0.5899, allocations: 1.343 MB / 0.6026 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-05/0.59, allocations: 0 / 0.6026 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003883/0.5904, allocations: 79.89 kB / 0.6026 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004685/0.5909, allocations: 136.7 kB / 0.6028 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.5909, allocations: 11.94 kB / 0.6028 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002918/0.5938, allocations: 2.37 MB / 0.6051 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5939, allocations: 7.922 kB / 0.6051 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.5953, allocations: 0.9543 MB / 0.606 GB, free: 8.988 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.5955, allocations: 120.5 kB / 0.6061 GB, free: 8.852 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.5955, allocations: 8 kB / 0.6062 GB, free: 8.844 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.5958, allocations: 19.98 kB / 0.6062 GB, free: 8.824 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.5958, allocations: 35.91 kB / 0.6062 GB, free: 8.789 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.5959, allocations: 16 kB / 0.6062 GB, free: 8.773 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002307/0.5961, allocations: 197.9 kB / 0.6064 GB, free: 8.582 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5961, allocations: 0 / 0.6064 GB, free: 8.582 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007258/0.5968, allocations: 144 kB / 0.6065 GB, free: 8.441 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.0001949/0.597, allocations: 115.2 kB / 0.6067 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.5984, allocations: 0.6618 MB / 0.6073 GB, free: 7.641 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5984, allocations: 0 / 0.6073 GB, free: 7.641 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007454/0.5992, allocations: 426.9 kB / 0.6077 GB, free: 7.211 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.5996, allocations: 56.77 kB / 0.6078 GB, free: 7.156 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.6016, allocations: 1.36 MB / 0.6091 GB, free: 5.762 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005719/0.6022, allocations: 0.8833 MB / 0.61 GB, free: 4.848 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002279/0.6024, allocations: 71.41 kB / 0.61 GB, free: 4.777 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.375e-05/0.6025, allocations: 31.44 kB / 0.6101 GB, free: 4.746 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6025, allocations: 3.938 kB / 0.6101 GB, free: 4.742 MB / 442.7 MB Notification: Performance of Templates: time 0.009574/0.6121, allocations: 5.108 MB / 0.615 GB, free: 15.64 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/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.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