Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,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_matrixEqCirc3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,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_matrixEqCirc3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001177/0.001177, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.03 MB / 329.3 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 68.06 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09527/0.09651, allocations: 58.07 MB / 456.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003152/0.0997, allocations: 2.088 MB / 458.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007124/0.1004, allocations: 0.5338 MB / 458.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.278e-05/0.1005, allocations: 0 / 458.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.1006, allocations: 7.922 kB / 458.8 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.437e-05/0.1007, allocations: 23.91 kB / 458.8 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.101, allocations: 67.84 kB / 458.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.1011, allocations: 119.6 kB / 459 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.912e-05/0.1012, allocations: 3.984 kB / 459 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.826e-05/0.1012, allocations: 19.88 kB / 459 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.273e-05/0.1013, allocations: 31.89 kB / 459.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.1013, allocations: 4 kB / 459.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.1015, allocations: 75.83 kB / 459.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.57e-05/0.1016, allocations: 43.84 kB / 459.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.302e-05/0.1016, allocations: 43.55 kB / 459.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001925/0.1018, allocations: 151.7 kB / 459.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1018, allocations: 4 kB / 459.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1018, allocations: 0 / 459.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.1018, allocations: 0 / 459.4 MB, free: 5.297 MB / 334.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.0003996/0.1022, allocations: 488.4 kB / 459.8 MB, free: 4.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.1023, allocations: 8.031 kB / 459.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.1023, allocations: 16.75 kB / 459.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.1025, allocations: 202.8 kB / 460.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.1025, allocations: 7.875 kB / 460.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.1025, allocations: 4 kB / 460.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001675/0.1027, allocations: 130.6 kB / 460.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1027, allocations: 3.984 kB / 460.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.1027, allocations: 0 / 460.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.1027, allocations: 0 / 460.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.838e-05/0.1028, allocations: 92.3 kB / 460.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001658/0.103, allocations: 202 kB / 460.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.1032, allocations: 154.8 kB / 460.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.1033, allocations: 145.2 kB / 460.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-06/0.1033, allocations: 4 kB / 460.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1033, allocations: 30.56 kB / 460.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.132e-06/0.1033, allocations: 0 / 460.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005225/0.1038, allocations: 471.6 kB / 461.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.1039, allocations: 105.1 kB / 461.4 MB, free: 3.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.1041, allocations: 146.4 kB / 461.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.1041, allocations: 25.7 kB / 461.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.319e-05/0.1041, allocations: 100.8 kB / 461.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.3e-05/0.1042, allocations: 138 kB / 461.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.1043, allocations: 33.7 kB / 461.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1044, allocations: 342.7 kB / 462.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.383e-05/0.1045, allocations: 91.97 kB / 462.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.861e-05/0.1046, allocations: 92.95 kB / 462.3 MB, free: 2.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.1049, allocations: 364.4 kB / 462.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1049, allocations: 0 / 462.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003086/0.1052, allocations: 323 kB / 463 MB, free: 1.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.633e-05/0.1053, allocations: 91.73 kB / 463.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1053, allocations: 7.922 kB / 463.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1053, allocations: 0 / 463.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.1053, allocations: 0 / 463.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.948e-06/0.1053, allocations: 0 / 463.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.759e-05/0.1054, allocations: 19.75 kB / 463.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.1054, allocations: 11.94 kB / 463.1 MB, free: 1.254 MB / 334.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.0001773/0.1056, allocations: 231.4 kB / 463.4 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.1056, allocations: 19.81 kB / 463.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.426e-05/0.1057, allocations: 13.97 kB / 463.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1057, allocations: 0 / 463.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1057, allocations: 0 / 463.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.1057, allocations: 7.938 kB / 463.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.1059, allocations: 233.2 kB / 463.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1059, allocations: 0 / 463.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1059, allocations: 0 / 463.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1059, allocations: 0 / 463.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.1059, allocations: 8 kB / 463.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.1059, allocations: 4 kB / 463.6 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1059, allocations: 0 / 463.6 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009081/0.1068, allocations: 0.9004 MB / 464.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.504e-05/0.1069, allocations: 100.7 kB / 464.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.1069, allocations: 11.98 kB / 464.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.41e-05/0.107, allocations: 4 kB / 464.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.84e-05/0.107, allocations: 11.94 kB / 464.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.107, allocations: 8 kB / 464.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.618e-05/0.1071, allocations: 118.4 kB / 464.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1071, allocations: 4.031 kB / 464.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.1074, allocations: 60 kB / 464.9 MB, free: 15.43 MB / 350.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.0001721/0.1076, allocations: 115.2 kB / 465 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.1088, allocations: 1.577 MB / 466.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1089, allocations: 4 kB / 466.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009945/0.1099, allocations: 1.362 MB / 467.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.1101, allocations: 28.05 kB / 467.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008232/0.1109, allocations: 0.6898 MB / 468.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.1113, allocations: 0.7461 MB / 469.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.982e-05/0.1113, allocations: 7.984 kB / 469.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.189e-05/0.1113, allocations: 7.438 kB / 469.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1113, allocations: 0 / 469.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of Templates: time 0.00502/0.1163, allocations: 2.375 MB / 471.8 MB, free: 8.449 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches