Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.Tables,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|table.u|table.y.1.|table.y.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Tables") translateModel(PowerSystems.Examples.Introductory.Tables,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|table.u|table.y.1.|table.y.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Tables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001176, allocations: 176.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2252/0.2252, allocations: 38.04 MB / 330.6 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.89 kB / 458.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3294, allocations: 58.06 MB / 0.5047 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Tables): time 0.002514/0.332, allocations: 1.397 MB / 0.5061 GB, free: 6.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005707/0.3326, allocations: 357.7 kB / 0.5064 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.401e-05/0.3326, allocations: 3.938 kB / 0.5064 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.3328, allocations: 15.7 kB / 0.5065 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.333, allocations: 43.3 kB / 0.5065 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.3332, allocations: 81.59 kB / 0.5066 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.3334, allocations: 54.98 kB / 0.5066 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.3334, allocations: 3.484 kB / 0.5066 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.3336, allocations: 35.58 kB / 0.5067 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.3336, allocations: 17.83 kB / 0.5067 GB, free: 6.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.3336, allocations: 2.281 kB / 0.5067 GB, free: 6.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.77e-05/0.3337, allocations: 53.81 kB / 0.5067 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.117e-05/0.3338, allocations: 23.27 kB / 0.5068 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.721e-05/0.3338, allocations: 21.08 kB / 0.5068 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.334, allocations: 90.06 kB / 0.5069 GB, free: 6.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.334, allocations: 6.203 kB / 0.5069 GB, free: 6.344 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.334, allocations: 0 / 0.5069 GB, free: 6.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.334, allocations: 0 / 0.5069 GB, free: 6.344 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003284/0.3344, allocations: 375.9 kB / 0.5072 GB, free: 5.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.3344, allocations: 13.23 kB / 0.5072 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.3344, allocations: 9.062 kB / 0.5073 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.3346, allocations: 191.1 kB / 0.5074 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.3347, allocations: 1.531 kB / 0.5074 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-06/0.3347, allocations: 2.375 kB / 0.5074 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3348, allocations: 68.67 kB / 0.5075 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3348, allocations: 0.5625 kB / 0.5075 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.3348, allocations: 1.75 kB / 0.5075 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.3348, allocations: 0 / 0.5075 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.037e-05/0.3349, allocations: 19.03 kB / 0.5075 GB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002814/0.3352, allocations: 287.2 kB / 0.5078 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.888e-05/0.3352, allocations: 39.72 kB / 0.5078 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.097e-05/0.3353, allocations: 13.94 kB / 0.5079 GB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.3353, allocations: 1.781 kB / 0.5079 GB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.3353, allocations: 31.53 kB / 0.5079 GB, free: 5.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3353, allocations: 4 kB / 0.5079 GB, free: 5.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001509/0.3355, allocations: 56.41 kB / 0.5079 GB, free: 5.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.3355, allocations: 78.23 kB / 0.508 GB, free: 5.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.3356, allocations: 146.5 kB / 0.5082 GB, free: 5.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.3357, allocations: 26.22 kB / 0.5082 GB, free: 5.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.173e-05/0.3357, allocations: 96.58 kB / 0.5083 GB, free: 4.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.3357, allocations: 7.25 kB / 0.5083 GB, free: 4.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.3358, allocations: 17.86 kB / 0.5083 GB, free: 4.906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.804e-05/0.3358, allocations: 323.7 kB / 0.5086 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.685e-05/0.3358, allocations: 7.062 kB / 0.5086 GB, free: 4.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.091e-05/0.3359, allocations: 20.77 kB / 0.5086 GB, free: 4.562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.594e-05/0.3359, allocations: 23.7 kB / 0.5087 GB, free: 4.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3359, allocations: 1.25 kB / 0.5087 GB, free: 4.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.055e-05/0.336, allocations: 54.2 kB / 0.5087 GB, free: 4.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.336, allocations: 8.469 kB / 0.5087 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.336, allocations: 0 / 0.5087 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.336, allocations: 1.953 kB / 0.5087 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.086e-05/0.3361, allocations: 8.562 kB / 0.5087 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.3361, allocations: 2.328 kB / 0.5087 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.056e-05/0.3361, allocations: 4 kB / 0.5087 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.3361, allocations: 1.25 kB / 0.5087 GB, free: 4.496 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.369e-05/0.3362, allocations: 121.1 kB / 0.5088 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.3362, allocations: 6.594 kB / 0.5089 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.3363, allocations: 61.61 kB / 0.5089 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3363, allocations: 1.688 kB / 0.5089 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3363, allocations: 4 kB / 0.5089 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3364, allocations: 0.6562 kB / 0.5089 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.3365, allocations: 183.1 kB / 0.5091 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3365, allocations: 3.938 kB / 0.5091 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.514e-05/0.3365, allocations: 5.094 kB / 0.5091 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3365, allocations: 0 / 0.5091 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.3365, allocations: 1.734 kB / 0.5091 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3365, allocations: 1.156 kB / 0.5091 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3365, allocations: 0 / 0.5091 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.564e-05/0.3366, allocations: 155.7 kB / 0.5093 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.078e-05/0.3367, allocations: 79.91 kB / 0.5093 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.3367, allocations: 0.6094 kB / 0.5093 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.922e-05/0.3367, allocations: 1.188 kB / 0.5093 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.505e-05/0.3368, allocations: 5.219 kB / 0.5093 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.3368, allocations: 1 kB / 0.5093 GB, free: 3.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.721e-05/0.3368, allocations: 113.2 kB / 0.5094 GB, free: 3.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3368, allocations: 0 / 0.5094 GB, free: 3.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002406/0.3371, allocations: 21.56 kB / 0.5095 GB, free: 3.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007954/0.3379, allocations: 408.2 kB / 0.5099 GB, free: 3.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.79e-05/0.338, allocations: 17.44 kB / 0.5099 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.338, allocations: 1.125 kB / 0.5099 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.627e-05/0.338, allocations: 7.141 kB / 0.5099 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.3383, allocations: 16.02 kB / 0.5099 GB, free: 3.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/0.3386, allocations: 166.8 kB / 0.5101 GB, free: 3.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.3388, allocations: 0.6956 MB / 0.5107 GB, free: 2.715 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.3388, allocations: 13.89 kB / 0.5107 GB, free: 2.707 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3388, allocations: 1.125 kB / 0.5107 GB, free: 2.707 MB / 382.1 MB Notification: Performance of Templates: time 0.003156/0.342, allocations: 1.424 MB / 0.5121 GB, free: 2.531 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Tables -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Tables_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Tables.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Tables.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches