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.001553/0.001553, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.59/1.59, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.000804/0.000804, allocations: 82.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1797/0.1797, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.975e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 56.32 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.441/0.5589, allocations: 97.86 MB / 0.5585 GB, free: 5.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/0.5594, allocations: 82.95 kB / 0.5586 GB, free: 5.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06011/0.6195, allocations: 23.99 MB / 0.582 GB, free: 1.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6196, allocations: 4 kB / 0.582 GB, free: 1.727 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.6196, allocations: 8 kB / 0.582 GB, free: 1.719 MB / 378.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.001176/0.6208, allocations: 0.661 MB / 0.5827 GB, free: 1.043 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.6208, allocations: 12.03 kB / 0.5827 GB, free: 1.031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.6226, allocations: 215.2 kB / 0.5829 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006761/0.6233, allocations: 369.2 kB / 0.5832 GB, free: 472 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.302e-05/0.6233, allocations: 28.38 kB / 0.5833 GB, free: 452 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.098e-05/0.6234, allocations: 45.05 kB / 0.5833 GB, free: 420 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.6244, allocations: 0.6071 MB / 0.5839 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.6245, allocations: 0 / 0.5839 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.6245, allocations: 19.77 kB / 0.5839 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.6247, allocations: 48.47 kB / 0.584 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009258/0.6256, allocations: 0.5677 MB / 0.5845 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003535/0.6292, allocations: 2.274 MB / 0.5867 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006807/0.6299, allocations: 477 kB / 0.5872 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.6302, allocations: 236.9 kB / 0.5874 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.6302, allocations: 7.984 kB / 0.5874 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.6303, allocations: 38.44 kB / 0.5875 GB, free: 12.94 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 2.375e-06/0.6303, allocations: 0 / 0.5875 GB, free: 12.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.002112/0.6324, allocations: 1.237 MB / 0.5887 GB, free: 11.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.6325, allocations: 81.11 kB / 0.5887 GB, free: 11.81 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.6327, allocations: 243.1 kB / 0.589 GB, free: 11.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.6328, allocations: 32.45 kB / 0.589 GB, free: 11.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.6329, allocations: 229.1 kB / 0.5892 GB, free: 11.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.633, allocations: 153.9 kB / 0.5894 GB, free: 11.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-05/0.6331, allocations: 13.88 kB / 0.5894 GB, free: 11.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.6332, allocations: 348.1 kB / 0.5897 GB, free: 10.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.6335, allocations: 163.4 kB / 0.5899 GB, free: 10.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.6338, allocations: 286.1 kB / 0.5901 GB, free: 10.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.6341, allocations: 205.1 kB / 0.5903 GB, free: 10.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6341, allocations: 0 / 0.5903 GB, free: 10.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001081/0.6352, allocations: 0.6489 MB / 0.591 GB, free: 9.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.6352, allocations: 11.95 kB / 0.591 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.098e-06/0.6352, allocations: 4 kB / 0.591 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005644/0.6358, allocations: 164 kB / 0.5911 GB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003973/0.6362, allocations: 95.77 kB / 0.5912 GB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.6399, allocations: 2.511 MB / 0.5937 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.6403, allocations: 23.3 kB / 0.5937 GB, free: 7.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.021e-05/0.6404, allocations: 19.81 kB / 0.5937 GB, free: 7.406 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 (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.0001588/0.6405, allocations: 136 kB / 0.5939 GB, free: 7.277 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/0.6406, allocations: 43.53 kB / 0.5939 GB, free: 7.234 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.6418, allocations: 0.605 MB / 0.5945 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.6418, allocations: 4 kB / 0.5945 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.6419, allocations: 0 / 0.5945 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.6419, allocations: 7.984 kB / 0.5945 GB, free: 6.781 MB / 394.7 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.002328/0.6442, allocations: 1.332 MB / 0.5958 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.6442, allocations: 0 / 0.5958 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.6446, allocations: 83.77 kB / 0.5959 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004666/0.6451, allocations: 132.4 kB / 0.596 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.6451, allocations: 14.5 kB / 0.596 GB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002918/0.6481, allocations: 2.297 MB / 0.5983 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6481, allocations: 0 / 0.5983 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.6497, allocations: 0.9657 MB / 0.5992 GB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001527/0.6498, allocations: 104.7 kB / 0.5993 GB, free: 2.324 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.6499, allocations: 12.22 kB / 0.5993 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.6501, allocations: 19.98 kB / 0.5993 GB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.919e-05/0.6502, allocations: 35.86 kB / 0.5994 GB, free: 2.258 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.6503, allocations: 19.98 kB / 0.5994 GB, free: 2.238 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002791/0.6505, allocations: 191.1 kB / 0.5996 GB, free: 2.055 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6506, allocations: 0 / 0.5996 GB, free: 2.055 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000744/0.6513, allocations: 152 kB / 0.5997 GB, free: 1.906 MB / 394.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 (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.0002101/0.6515, allocations: 111.7 kB / 0.5998 GB, free: 1.789 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.6528, allocations: 0.65 MB / 0.6005 GB, free: 1.125 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6528, allocations: 0 / 0.6005 GB, free: 1.125 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006985/0.6535, allocations: 410.9 kB / 0.6009 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.6539, allocations: 55 kB / 0.6009 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.6557, allocations: 0.9176 MB / 0.6018 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.6563, allocations: 0.8754 MB / 0.6027 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.6565, allocations: 67.23 kB / 0.6027 GB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.6566, allocations: 35.44 kB / 0.6028 GB, free: 14.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.754e-06/0.6566, allocations: 0 / 0.6028 GB, free: 14.7 MB / 410.7 MB Notification: Performance of Templates: time 0.01055/0.6672, allocations: 5.124 MB / 0.6078 GB, free: 9.57 MB / 410.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