Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002407/0.002407, allocations: 109.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.003177/0.003177, allocations: 193.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.946/2.946, 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.626/0.626, allocations: 38.03 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0029/0.0029, allocations: 64.09 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7937/0.7966, allocations: 58.06 MB / 0.5048 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.007485/0.8042, allocations: 2.1 MB / 0.5068 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006362/0.8107, allocations: 2.041 MB / 0.5088 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.811, allocations: 0 / 0.5088 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000298/0.8114, allocations: 15.64 kB / 0.5088 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.8116, allocations: 33.25 kB / 0.5089 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005357/0.817, allocations: 0.8382 MB / 0.5097 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.8174, allocations: 74.56 kB / 0.5098 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.528e-05/0.8175, allocations: 4.812 kB / 0.5098 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.8177, allocations: 35.41 kB / 0.5098 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.8179, allocations: 52.22 kB / 0.5098 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.8179, allocations: 2.719 kB / 0.5098 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00564/0.8236, allocations: 1.404 MB / 0.5112 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.8238, allocations: 39.58 kB / 0.5113 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.824, allocations: 56.33 kB / 0.5113 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006468/0.8305, allocations: 1.384 MB / 0.5127 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.42e-05/0.8306, allocations: 0 / 0.5127 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.232e-06/0.8306, allocations: 4 kB / 0.5127 GB, free: 3.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.875e-05/0.8307, allocations: 0.9062 kB / 0.5127 GB, free: 3.871 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002497/0.8332, allocations: 0.6071 MB / 0.5133 GB, free: 3.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.838e-05/0.8333, allocations: 13.14 kB / 0.5133 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.8335, allocations: 20.45 kB / 0.5133 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.8338, allocations: 207.2 kB / 0.5135 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.8338, allocations: 1.188 kB / 0.5135 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.8338, allocations: 1.156 kB / 0.5135 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.8343, allocations: 143.7 kB / 0.5136 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.8343, allocations: 5.094 kB / 0.5136 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.8344, allocations: 2.906 kB / 0.5136 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.8344, allocations: 1.062 kB / 0.5136 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.8346, allocations: 95.47 kB / 0.5137 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000295/0.8349, allocations: 214.5 kB / 0.5139 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.8353, allocations: 159.5 kB / 0.5141 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.8355, allocations: 144.2 kB / 0.5142 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.8356, allocations: 0 / 0.5142 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.8356, allocations: 40.73 kB / 0.5143 GB, free: 2.598 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.223e-06/0.8356, allocations: 0 / 0.5143 GB, free: 2.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.001423/0.8371, allocations: 498.2 kB / 0.5147 GB, free: 2.445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.8372, allocations: 108.4 kB / 0.5148 GB, free: 2.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003256/0.8375, allocations: 168.7 kB / 0.515 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.8376, allocations: 26.92 kB / 0.515 GB, free: 2.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.996e-05/0.8377, allocations: 104.8 kB / 0.5151 GB, free: 2.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.8379, allocations: 126.3 kB / 0.5152 GB, free: 2.004 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.838, allocations: 41.33 kB / 0.5153 GB, free: 1.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.8382, allocations: 338 kB / 0.5156 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002975/0.8385, allocations: 94.73 kB / 0.5157 GB, free: 1.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.8389, allocations: 104.4 kB / 0.5158 GB, free: 1.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.84, allocations: 382.4 kB / 0.5162 GB, free: 1.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.84, allocations: 0.5625 kB / 0.5162 GB, free: 1.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001036/0.8411, allocations: 346.6 kB / 0.5165 GB, free: 1.336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.8413, allocations: 86.8 kB / 0.5166 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.8413, allocations: 5.469 kB / 0.5166 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.8413, allocations: 0 / 0.5166 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.8413, allocations: 0 / 0.5166 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.8414, allocations: 1.281 kB / 0.5166 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/0.8415, allocations: 19.19 kB / 0.5166 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.012e-05/0.8416, allocations: 11.59 kB / 0.5166 GB, free: 1.281 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0004082/0.842, allocations: 233.4 kB / 0.5168 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-05/0.8421, allocations: 25.5 kB / 0.5169 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.8422, allocations: 16.27 kB / 0.5169 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.8422, allocations: 4 kB / 0.5169 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.8422, allocations: 1 kB / 0.5169 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.8422, allocations: 0 / 0.5169 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002929/0.8425, allocations: 241.6 kB / 0.5171 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.8425, allocations: 1.469 kB / 0.5171 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.8425, allocations: 0 / 0.5171 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.8425, allocations: 0 / 0.5171 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.8426, allocations: 7.969 kB / 0.5171 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.8426, allocations: 5.875 kB / 0.5171 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8426, allocations: 0 / 0.5171 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.8449, allocations: 0.9188 MB / 0.518 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.8451, allocations: 98.31 kB / 0.5181 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.293e-05/0.8451, allocations: 6.844 kB / 0.5181 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.8453, allocations: 6.047 kB / 0.5181 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.8453, allocations: 8.766 kB / 0.5181 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.8454, allocations: 13.3 kB / 0.5181 GB, free: 0.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002505/0.8456, allocations: 126.3 kB / 0.5183 GB, free: 424 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8457, allocations: 0 / 0.5183 GB, free: 424 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.003469/0.8491, allocations: 359.6 kB / 0.5186 GB, free: 376 kB / 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.002604/0.8518, allocations: 376.7 kB / 0.519 GB, free: 212 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003176/0.855, allocations: 1.603 MB / 0.5205 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.855, allocations: 0 / 0.5205 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002323/0.8574, allocations: 1.372 MB / 0.5219 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.858, allocations: 20.19 kB / 0.5219 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.8603, allocations: 0.699 MB / 0.5226 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008366/0.8612, allocations: 0.7565 MB / 0.5233 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.8612, allocations: 13.94 kB / 0.5233 GB, free: 13.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.8612, allocations: 0 / 0.5233 GB, free: 13.59 MB / 398.1 MB Notification: Performance of Templates: time 0.02821/0.8895, allocations: 7.092 MB / 0.5303 GB, free: 10.99 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches