Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.431/1.431, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.0007197/0.0007196, allocations: 85.48 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1701/0.1701, allocations: 38.07 MB / 358.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004202/0.0004203, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4094, allocations: 56.31 MB / 481.6 MB, free: 9.609 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1819/0.5914, allocations: 94.46 MB / 0.5625 GB, free: 7.809 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5917, allocations: 95.75 kB / 0.5626 GB, free: 7.719 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03656/0.6283, allocations: 9.854 MB / 0.5722 GB, free: 13.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.6283, allocations: 0 / 0.5722 GB, free: 13.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.6284, allocations: 4 kB / 0.5722 GB, free: 13.75 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009546/0.6293, allocations: 487.4 kB / 0.5727 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.6294, allocations: 12.03 kB / 0.5727 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009017/0.6303, allocations: 92.56 kB / 0.5728 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000527/0.6308, allocations: 276 kB / 0.5731 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.6309, allocations: 8.703 kB / 0.5731 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.513e-05/0.631, allocations: 20.38 kB / 0.5731 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005987/0.6316, allocations: 260.5 kB / 0.5733 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.6316, allocations: 4.094 kB / 0.5733 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.6317, allocations: 15.92 kB / 0.5734 GB, free: 12.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.261e-05/0.6317, allocations: 12.31 kB / 0.5734 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005592/0.6323, allocations: 204.8 kB / 0.5736 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.6346, allocations: 1.218 MB / 0.5748 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.6349, allocations: 117.2 kB / 0.5749 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.635, allocations: 41.77 kB / 0.5749 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.853e-05/0.6351, allocations: 4 kB / 0.5749 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.6351, allocations: 38.56 kB / 0.575 GB, free: 10.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 3.306e-06/0.6351, allocations: 0 / 0.575 GB, free: 10.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004817/0.6356, allocations: 157.2 kB / 0.5751 GB, free: 10.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.6357, allocations: 81.11 kB / 0.5752 GB, free: 10.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.636, allocations: 206.7 kB / 0.5754 GB, free: 10.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.636, allocations: 29.7 kB / 0.5754 GB, free: 10.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.6362, allocations: 151.9 kB / 0.5755 GB, free: 10.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.255e-05/0.6362, allocations: 51.52 kB / 0.5756 GB, free: 10.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/0.6363, allocations: 0 / 0.5756 GB, free: 10.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6364, allocations: 330.8 kB / 0.5759 GB, free: 9.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.6365, allocations: 35.98 kB / 0.5759 GB, free: 9.645 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.6367, allocations: 126.9 kB / 0.5761 GB, free: 9.484 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003236/0.6371, allocations: 170.5 kB / 0.5762 GB, free: 9.281 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6371, allocations: 4 kB / 0.5762 GB, free: 9.277 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004478/0.6376, allocations: 201.2 kB / 0.5764 GB, free: 9.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.6376, allocations: 4 kB / 0.5764 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6376, allocations: 4 kB / 0.5764 GB, free: 9.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.6376, allocations: 4 kB / 0.5764 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.6379, allocations: 51.91 kB / 0.5765 GB, free: 9.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.638, allocations: 15.81 kB / 0.5765 GB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.6381, allocations: 19.75 kB / 0.5765 GB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.6382, allocations: 12.31 kB / 0.5765 GB, free: 8.965 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.6384, allocations: 149.7 kB / 0.5767 GB, free: 8.809 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.437e-05/0.6384, allocations: 15.81 kB / 0.5767 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003201/0.6388, allocations: 131 kB / 0.5768 GB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.6388, allocations: 4 kB / 0.5768 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.6388, allocations: 3.938 kB / 0.5768 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.6388, allocations: 0 / 0.5768 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009459/0.6398, allocations: 0.5383 MB / 0.5773 GB, free: 8.039 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.6398, allocations: 0 / 0.5773 GB, free: 8.039 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.64, allocations: 31.98 kB / 0.5774 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.64, allocations: 4 kB / 0.5774 GB, free: 8.004 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.6401, allocations: 4 kB / 0.5774 GB, free: 8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.6401, allocations: 7.922 kB / 0.5774 GB, free: 7.992 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.6401, allocations: 8.188 kB / 0.5774 GB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.6406, allocations: 325.1 kB / 0.5777 GB, free: 7.629 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.853e-05/0.6407, allocations: 96.89 kB / 0.5778 GB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.6408, allocations: 7.984 kB / 0.5778 GB, free: 7.508 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.6409, allocations: 4 kB / 0.5778 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.433e-05/0.641, allocations: 11.98 kB / 0.5778 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.641, allocations: 4 kB / 0.5778 GB, free: 7.488 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001793/0.6412, allocations: 148.5 kB / 0.578 GB, free: 7.344 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6412, allocations: 4.062 kB / 0.578 GB, free: 7.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005773/0.6418, allocations: 55.84 kB / 0.578 GB, free: 7.285 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001471/0.6419, allocations: 107.2 kB / 0.5781 GB, free: 7.172 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.6423, allocations: 111.8 kB / 0.5782 GB, free: 7.062 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.6423, allocations: 4.625 kB / 0.5782 GB, free: 7.059 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.6424, allocations: 52.05 kB / 0.5783 GB, free: 7.008 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006463/0.643, allocations: 47.08 kB / 0.5783 GB, free: 6.965 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.6443, allocations: 0.6299 MB / 0.579 GB, free: 6.289 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.6448, allocations: 0.7479 MB / 0.5797 GB, free: 5.516 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001618/0.645, allocations: 29.53 kB / 0.5797 GB, free: 5.488 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.645, allocations: 15.44 kB / 0.5797 GB, free: 5.473 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.645, allocations: 0 / 0.5797 GB, free: 5.473 MB / 410.7 MB Notification: Performance of Templates: time 0.005312/0.6504, allocations: 1.23 MB / 0.5809 GB, free: 4.25 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches